Skip to content

Commit

Permalink
fix(engine): count canceled jobs in metrics
Browse files Browse the repository at this point in the history
This behavior was broken in an earlier commit, when we switched from
writing a Cancel Job command to a Job Canceled event.

(cherry picked from commit 0aac0d7)
  • Loading branch information
korthout committed Apr 28, 2022
1 parent b569307 commit 7b53544
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ private void writeJobCanceled(final long jobKey) {
if (CANCELABLE_STATES.contains(state)) {
final JobRecord job = jobState.getJob(jobKey);
stateWriter.appendFollowUpEvent(jobKey, JobIntent.CANCELED, job);
jobMetrics.jobCanceled(job.getType());
}
}

Expand Down

0 comments on commit 7b53544

Please sign in to comment.