mirror of https://github.com/apache/druid.git
TaskConsumer: Don't tell the queue we're done if we have been shut down
This commit is contained in:
parent
06b8e4230c
commit
09669b6a2e
|
@ -112,7 +112,9 @@ public class TaskConsumer implements Runnable
|
|||
.emit();
|
||||
|
||||
// TODO - Retry would be nice, but only after we have a way to throttle and limit them
|
||||
queue.done(task, TaskStatus.failure(task.getId()));
|
||||
if(!shutdown) {
|
||||
queue.done(task, TaskStatus.failure(task.getId()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue