File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/main/scala/org/apache/mesos/chronos/scheduler/mesos Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -175,9 +175,6 @@ import scala.concurrent.ExecutionContext.Implicits.global
175
175
)
176
176
if (status == Protos .Status .DRIVER_RUNNING ) {
177
177
for (task <- tasks) {
178
- val deleted = taskManager.removeTask(task._1)
179
- log.fine(" Successfully launched task '%s' via chronos, task records successfully deleted: '%b'"
180
- .format(task._1, deleted))
181
178
runningTasks.put(task._2.name, new ChronosTask (task._3.getSlaveId.getValue))
182
179
183
180
// TODO(FL): Handle case if chronos can't launch the task.
@@ -228,7 +225,8 @@ import scala.concurrent.ExecutionContext.Implicits.global
228
225
log.info(" Task with id '%s' LOST" .format(taskStatus.getTaskId.getValue))
229
226
scheduler.handleFailedTask(taskStatus)
230
227
case TaskState .TASK_RUNNING =>
231
- log.info(" Task with id '%s' RUNNING." .format(taskStatus.getTaskId.getValue))
228
+ log.info(" Task with id '%s' RUNNING. Removing persistence task." .format(taskStatus.getTaskId.getValue))
229
+ taskManager.removeTask(taskStatus.getTaskId.getValue)
232
230
case TaskState .TASK_KILLED =>
233
231
log.info(" Task with id '%s' KILLED." .format(taskStatus.getTaskId.getValue))
234
232
scheduler.handleKilledTask(taskStatus)
You can’t perform that action at this time.
0 commit comments