Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E_CHORD_NO_BACKEND NotImplementedError: Starting chords requires a result backend to be configured #447

Open
zenoran opened this issue Oct 16, 2024 · 0 comments

Comments

@zenoran
Copy link

zenoran commented Oct 16, 2024

Sorry if I'm posting this in the wrong place, but I'm trying to troubleshoot this intermittent error I can't seem to figure out. Using Django 4.2.13 and django-celery-restults as the backend we starting seeing this error... There aren't many posts concerning this error but it is a very frequent problem in our application. The one post I saw on celery issues mentioned changing the syntax using | but that doesn't seem to have any impact. Has anyone seen this and/or has any idea how I might be able to troubleshoot? It doesn't make a lot of sense how sometimes it thinks there is no database backend even when error is being raised where the class is celery_result_backend.DatabaseBackend.

     File "../tasks/schedule.py", line 94, in schedule_all_device_tasks
       chord(group_task)(schedule_tasks.s())
     File "../python/lib/python3.11/site-packages/celery/canvas.py", line 2038, in __call__
       return self.apply_async((), {'body': body} if body else {}, **options)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "../python/lib/python3.11/site-packages/celery/canvas.py", line 2140, in apply_async
       return self.run(tasks, body, args, task_id=task_id, kwargs=kwargs, **merged_options)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "../python/lib/python3.11/site-packages/celery/canvas.py", line 2232, in run
       app.backend.apply_chord(
     File "../python/lib/python3.11/site-packages/celery/backends/base.py", line 712, in apply_chord
       self.ensure_chords_allowed()
     File "../python/lib/python3.11/site-packages/celery/backends/base.py", line 1101, in ensure_chords_allowed
       raise NotImplementedError(E_CHORD_NO_BACKEND.strip())
   NotImplementedError: Starting chords requires a result backend to be configured.
   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant