celery / django-celery-results

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

django_celery_results_taskresult worker is null #353

Open Zoom2016 opened 1 year ago

Zoom2016 commented 1 year ago

version: celery==5.2.7 django-celery-results==2.4.0

question: The "worker" field of the django_celery_results_taskresult is null instead of host name. The correct value should be the hostname, when celery==5.2.1 and django-celery-results==2.0.1.

1671436923019

Zoom2016 commented 1 year ago

I downgraded the version of django-celery-results to 2.3.1 and the problem seems to be fixed. I didn't notice it before, it seems that other fields are also null, but after change the version, everything is back to normal.

case 1 -> django-celery-results==2.3.1 case 2 -> django-celery-results==2.4.0

image

Xzya commented 1 year ago

I believe you need to set CELERY_RESULT_EXTENDED = True for the extra fields to be saved (was previously saved by default, #334)