Skip to content

Commit

Permalink
Record action execution duration apache#3606
Browse files Browse the repository at this point in the history
Indirectly fix "actionDuration" always null in workflow logging
  • Loading branch information
nadment committed Feb 6, 2024
1 parent a46bafb commit 9a4d45f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/src/main/java/org/apache/hop/workflow/Workflow.java
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,9 @@ private Result executeFromStart(
newResult = cloneJei.execute(prevResult, nr);
log.snap(Metrics.METRIC_ACTION_STOP, cloneJei.toString());

// Action execution duration
newResult.setElapsedTimeMillis(System.currentTimeMillis()-start);

if (interactive) {
getActiveActions().remove(actionMeta);
}
Expand Down

0 comments on commit 9a4d45f

Please sign in to comment.