public interface ComputeJobMasterLeaveAware
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.
Modifier and Type | Method and Description |
---|---|
void |
onMasterNodeLeft(ComputeTaskSession ses)
A method which is executed in case master node has left topology during job execution.
|
void onMasterNodeLeft(ComputeTaskSession ses) throws IgniteException
ses
- Task session, can be used for checkpoint saving.IgniteException
- In case of any exception.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024