Annotation for handling master node leave during job execution.
If ComputeJob
concrete class implements this interface then in case when master node leaves topology
during job execution the callback method onMasterNodeLeft(ComputeTaskSession)
will be executed.
Implementing this interface gives you ability to preserve job execution result or its intermediate state
which could be reused later. E.g. you can save job execution result to the database or as a checkpoint
and reuse it when failed task is being executed again thus avoiding job execution from scratch.