Skip to content

Commit f2e888f

Browse files
committed
add celery context for task
1 parent 6cf905c commit f2e888f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reports/tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121

2222
if settings.USE_ASYNC_PROCESSING:
2323
from celery.task import task
24+
from patchman.celery import app
2425

25-
@task()
26+
@app.task()
2627
def process_report(report_id):
2728
report = Report.objects.get(id=report_id)
2829
report.process(verbose=True)

0 commit comments

Comments
 (0)