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
Worker.timeout_task interrupt subtasks if recursive is True and the task has subtasks.
The subtasks are set to INTERRUPTED but they should be set to TIMEOUT.
This is the current code of timeout_task:
deftimeout_task(self, recursive=True):
"""Set the task state to timeout."""try:
self.__lock(self.worker_id, new_state=TASK_STATES["TIMEOUT"], initial_states=(TASK_STATES["OPEN"], ))
except (MultipleObjectsReturned, ObjectDoesNotExist):
raiseException("Cannot interrupt task %d, state is %s"% (self.id, self.get_state_display()))
ifrecursive:
fortaskinself.subtasks():
task.interrupt_task(recursive=True)
self.logs.gzip_logs()
It's a very silly mistake, looks like it was copy and paste and someone forgot to change it.
The text was updated successfully, but these errors were encountered:
Worker.timeout_task
interrupt subtasks if recursive is True and the task has subtasks.The subtasks are set to
INTERRUPTED
but they should be set toTIMEOUT
.This is the current code of timeout_task:
It's a very silly mistake, looks like it was copy and paste and someone forgot to change it.
The text was updated successfully, but these errors were encountered: