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
which is incorrect since task is already closed. When checking code:
iftask_info["state"] ==TASK_STATES["OPEN"] andtask_info["id"] notinself.pid_dict:
# an interrupted task appears to be open, but running task manager doesn't track it in it's pid list# this happens after a power outage, for exampleinterrupted_list.append(task_info["id"])
finished_tasks.add(task_info["id"])
continue
this condition is evaluated as true which means that the task is still open even though it's suppose to be closed (because it doesn't have an entry in pid_dict)
So, why it's not closed? Looking at code, this is how tasks are supposed to be closed
worker log:
At 9:42, process of 24993 finished with 0 so kobo correctly closed the task and cleaned up:
I believe that here comes the race condition. In next cycle, we can see
which is incorrect since task is already closed. When checking code:
this condition is evaluated as true which means that the task is still open even though it's suppose to be closed (because it doesn't have an entry in
pid_dict
)So, why it's not closed? Looking at code, this is how tasks are supposed to be closed
Since that code contains very little logging, it's hard to figure out what could possibly go wrong.
The text was updated successfully, but these errors were encountered: