mirror of https://github.com/apache/druid.git
RemoteTaskRunner: Only cleanup paths during bootstrapping if task is complete
This commit is contained in:
parent
efdff7b9f1
commit
1cff766e2a
|
@ -316,7 +316,10 @@ public class RemoteTaskRunner implements TaskRunner
|
|||
if (callback != null) {
|
||||
callback.notify(taskStatus);
|
||||
}
|
||||
new CleanupPaths(worker.getHost(), taskWrapper.getTask().getId()).run();
|
||||
|
||||
if (taskStatus.isComplete()) {
|
||||
new CleanupPaths(worker.getHost(), taskWrapper.getTask().getId()).run();
|
||||
}
|
||||
} else {
|
||||
log.warn("Worker data was null for worker: %s", worker.getHost());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue