You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sambles
changed the title
Possible cancellation issue in V2 workflows running Input generation.
Cancellation issue in V2 workflows running Input generation.
Jul 25, 2024
The attached parent task id used to identify the celery canvas workflow is not correct. analysis.generate_inputs_task_id
run generate_inputs is posted.
No workers are available to accept initial task, all sub-tasks don't yet have task id's as they are all PENDING.
cancel_generate_inputs is posted.
the sub-task cancellation does nothing, since there are no sub-task id's to revoke yet. The parent task revoke call also fails (because the main task id is not correct)
Analysis is marked as cancelled in DB, while on the backend nothing has been cancelled.
--- Worker becomes available ---
6. initial task (still on queue) is picked up and the sub-tasks start to execute.
7. follow-up post to cancel_generate_inputs do noting, becuase the analysis is tagged as already cancelled.
Issue: The challenge arises when the worker associated with the task's queue is offline. In such cases, the broadcast signal sent by .revoke() is lost. Consequently, even if tasks have been revoked, upon restarting the workers, these tasks are still executed.
Issue Description
Had a report of an analyses cancellation call failing when running generate inputs.
The cancellation call returns HTTP 200, and sub-tasks are marked as cancelled, but tasks appear to keep running in the background.
Cancellation issued - 13:12:25
Worker monitor - 13:29:19
The text was updated successfully, but these errors were encountered: