Skip to content

Commit 67bd12d

Browse files
authored
Merge pull request #85 from unicef/bugfix/239780-job-list-view-is-showing-wrong-status-backend-on-creation
AB#239780: Pass backend option on Celery app creation
2 parents 1c107f2 + 3b53600 commit 67bd12d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/country_workspace/config/celery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __call__(self, *args: Any, **kwargs: Any) -> Any:
3535
return "Task already running"
3636

3737

38-
app = Celery("cw")
38+
app = Celery("cw", backend=settings.CELERY_RESULT_BACKEND)
3939
app.task_cls = LockedTask
4040
app.config_from_object("django.conf:settings", namespace="CELERY")
4141
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS, related_name="tasks")

0 commit comments

Comments
 (0)