celery / django-celery-results

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

date_done does not reflect the time the *task* was completed, but the time the *task result* is updated #415

Open sdrabblescripta opened 7 months ago

sdrabblescripta commented 7 months ago

Per title, this is misleading since I would expect the date_done field to reflect when the task completes (or fails). This is not the case, and because the field is marked auto_now=True the record gets updated whenever I update the task's state for e.g. progress tracking.

This leads to my users complaining (rightly) that tasks are still in progress but show with a done date.

Can we get 'date_done' modified to accurately reflect the time a task completes?

michellejzh commented 5 months ago

I'm seeing the same issue - date_done is assigned a value even when the task isn't yet .ready(), which seems at odds with what that field name implies.