Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion django_celery_results/backends/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ def on_chord_part_return(self, request, state, result, **kwargs):
else:
# Last task in the chord header has finished
call_callback = True
chord_counter.delete()

if call_callback:
deps = chord_counter.group_result(app=self.app)
Expand All @@ -276,6 +275,10 @@ def on_chord_part_return(self, request, state, result, **kwargs):
callback=callback,
group_result=deps
)
chord_counter.delete()
else:
logger.warning("ChordCounter for Group %s 0 "
"but not ready yet.", gid)


def trigger_callback(app, callback, group_result):
Expand Down