iExecBlockchainComputing/iexec-worker

Worker shouldn't restart when a task is currently being computed.

Closed this issue · 1 comments

When the worker detects that the core is restarted it immediately restarts even though an application container is running. The worker should wait for the compute the finish then restart.

Fixed with #350 & iExecBlockchainComputing/iexec-core#397.

After a Core scheduler restart, the worker asks scheduler if some computing tasks are in progress.

  • If yes, the worker will finish its computing tasks before restarting.
  • If no, the worker will stop running containers launched by itself (in case there are) before restarting.