Skip to content

Commit 97ce5aa

Browse files
feat: add support for celery 5.x (#334)
* feat: add support for celery 5.x * chore: bump version for release
1 parent 95aea4d commit 97ce5aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

problem_builder/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
import time
55

6-
from celery.task import task
6+
from celery import shared_task
77
from celery.utils.log import get_task_logger
88
from django.contrib.auth.models import User
99
from django.db.models import F
@@ -23,7 +23,7 @@
2323
logger = get_task_logger(__name__)
2424

2525

26-
@task()
26+
@shared_task()
2727
def export_data(course_id, source_block_id_str, block_types, user_ids, match_string):
2828
"""
2929
Exports student answers to all supported questions to a CSV file.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
# Constants #########################################################
2929

30-
VERSION = '5.0.0'
30+
VERSION = '5.1.0'
3131

3232
# Functions #########################################################
3333

0 commit comments

Comments
 (0)