public interface Progressable
isKillTask is helpful for you to determine whether to kill itself to involve fail-over mechanism. By using
fail-over, we can launch task in other machines which will improve the efficiency.
For 10 tasks, 9 of them are very fast while the last one is very slow, which makes the whole iteration is very slow. It is important to kill this task and launch it in other machines.
Since no too much computation on master, isKillTask only works on worker nodes so far.
| Modifier and Type | Method and Description |
|---|---|
void |
progress(int currentIteration,
int totalIteration,
String status,
boolean isLastUpdate,
boolean isKillTask)
Report progress to caller.
|
void progress(int currentIteration,
int totalIteration,
String status,
boolean isLastUpdate,
boolean isKillTask)
currentIteration - current iteration.totalIteration - total iteration.status - report current status description to caller.isLastUpdate - whether it is last update of current iterationisKillTask - Whether to kill itself because of computation is too long over a threshold or a statistics time over
95% other tasks.Copyright © 2019. All Rights Reserved.