celery / django-celery-results

Celery result back end with django

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

sdrabblescripta opened this issue · comments

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?

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.