celery / django-celery-results

Celery result back end with django
Other
668 stars 206 forks source link

fix: header_result.id duplication exception #413

Closed hann-wang closed 7 months ago

hann-wang commented 7 months ago

Chaining multiple groups together with a single task will be upgraded to a chord, which further leads to a unique constraint violation on the django_celery_results_chordcounter.group_id key. Perhaps we should change the create method to update_or_create method?

auvipy commented 7 months ago

why it is closed?

hann-wang commented 7 months ago

I am investigating why the same group_id is called multiple times by celery canvas. A temporary solution might be adding up all counts instead of resetting to new one.