Sync state tolerance (#2725)
This commit is contained in:
parent
6e1c787e5d
commit
a8c2d77c91
|
@ -312,6 +312,10 @@ class WorkerManager:
|
|||
|
||||
def _sync_states(self):
|
||||
for process in self.processes:
|
||||
try:
|
||||
state = self.worker_state[process.name].get("state")
|
||||
except KeyError:
|
||||
process.set_state(ProcessState.TERMINATED, True)
|
||||
continue
|
||||
if state and process.state.name != state:
|
||||
process.set_state(ProcessState[state], True)
|
||||
|
|
Loading…
Reference in New Issue
Block a user