Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Celery celery_taskmeta table for results backend not saving until task completed

My celery is using postgresql for a backend, but it seems that the celery_taskmeta table is only created and tasks saved to it only after they're completed, rather than being able to track which ones are in the various status states.

Is there some configuration issue for me that would cause that? Or does it only save the final result to the backend, rather than the status along the way.

like image 912
Brian L. Clark Avatar asked Sep 18 '25 10:09

Brian L. Clark


1 Answers

Set task_track_started to True in your celery config, this will add tasks to the result backend as soon as the task enters the STARTED state.

like image 180
Yogesh Mangaj Avatar answered Sep 19 '25 23:09

Yogesh Mangaj