Skip to content

Commit af09f1d

Browse files
committed
Report finishing as well as starting of the task in TaskExecutionEnvironment
1 parent 6d177e4 commit af09f1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

magic-scheduler/src/main/java/place/sita/magicscheduler/scheduler/environment/TaskExecutionEnvironment.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ public AcceptedContextT getApi() {
110110
log.trace("Exception when executing {}", internalExecutionId, e);
111111
exception = ExceptionUtil.exceptionToString(e);
112112
taskExecutionResult = type.resolveThrowableIntoResult(e);
113+
} finally {
114+
log.info("Execution finished for {}", internalExecutionId);
113115
}
114116
if (exception != null) {
115117
sb.append("\r\n").append(exception);

0 commit comments

Comments
 (0)