php - How to get the failed tasks in Celery? -
php - How to get the failed tasks in Celery? -
i using celery process tasks. can see how many active or scheduled etc, not able find way see tasks have failed. flower show me status if running when task started , failed. there command tasks have failed (status: failure) ?
i have task id when task created. there millions of them. can't check 1 1 if there way check task id. if there such command, please allow me know.
task id
has state
, status
properties. can status of tasks id.
my_task_id = my_task.delay(foo) my_task_id.state my_task_id.status
gives status whether pending, started, retry, failure or success.
afaik, celery show active, scheduled, reserved, revoked id doesn't show failed tasks.
since have task id's, can loop on status.
for task_id in task_id_list: if task_id.state == 'failure' print(task_id)
php python ubuntu celery flower
Comments
Post a Comment