Skip to content

Commit c1494fd

Browse files
committed
master: mark as aborted killed jobs, #TASK-7589
1 parent ebd0191 commit c1494fd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

opencga-master/src/main/java/org/opencb/opencga/master/monitor/daemons/ExecutionDaemon.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,9 @@ private Enums.ExecutionStatus getCurrentStatus(Job job) {
10361036
// Check if analysis result file is there
10371037
ExecutionResult execution = readExecutionResult(job, EXECUTION_RESULT_FILE_EXPIRATION_SECONDS);
10381038
if (execution != null) {
1039+
if (execution.getStatus().getName() == Status.Type.ERROR && job.getInternal().isKillJobRequested()) {
1040+
return new Enums.ExecutionStatus(Enums.ExecutionStatus.ABORTED);
1041+
}
10391042
return new Enums.ExecutionStatus(execution.getStatus().getName().name());
10401043
}
10411044

0 commit comments

Comments
 (0)