mirror of https://github.com/apache/druid.git
RemoteTaskRunner: Remove task from pendingTaskPayloads on shutdown if needed
This commit is contained in:
parent
0129ea99cf
commit
c60158a21a
|
@ -298,6 +298,7 @@ public class RemoteTaskRunner implements TaskRunner, TaskLogStreamer
|
|||
if (!started) {
|
||||
log.info("This TaskRunner is stopped. Ignoring shutdown command for task: %s", taskId);
|
||||
} else if (pendingTasks.remove(taskId) != null) {
|
||||
pendingTaskPayloads.remove(taskId);
|
||||
log.info("Removed task from pending queue: %s", taskId);
|
||||
} else if (completeTasks.containsKey(taskId)) {
|
||||
cleanup(completeTasks.get(taskId).getWorker().getHost(), taskId);
|
||||
|
|
Loading…
Reference in New Issue