RemoteTaskRunner: Remove task from pendingTaskPayloads on shutdown if needed

This commit is contained in:
Gian Merlino 2013-12-12 10:59:08 -08:00
parent 0129ea99cf
commit c60158a21a
1 changed files with 1 additions and 0 deletions

View File

@ -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);