Brian L. Clark
Brian L. Clark

Reputation: 628

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.

Upvotes: 4

Views: 2243

Answers (1)

Yogesh Mangaj
Yogesh Mangaj

Reputation: 3280

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.

Upvotes: 2

Related Questions