Skip to content

Commit

Permalink
Handle active/unknown state
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar committed Nov 16, 2021
1 parent 39d2a35 commit 04a0f6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/alerting/server/task_runner/task_runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,9 @@ export class TaskRunner<
}

if (apm.currentTransaction) {
if (executionStatus.status === 'ok') {
if (executionStatus.status === 'ok' || executionStatus.status === 'active') {
apm.currentTransaction.setOutcome('success');
} else if (executionStatus.status === 'error') {
} else if (executionStatus.status === 'error' || executionStatus.status === 'unknown') {
apm.currentTransaction.setOutcome('failure');
}
}
Expand Down

0 comments on commit 04a0f6d

Please sign in to comment.