Skip to content

Commit

Permalink
Adding comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 committed Feb 24, 2021
1 parent fad2a26 commit 9fc6e05
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ export default function alertTests({ getService }: FtrProviderContext) {
}

async function resetTaskStatus(alertId: string) {
// occasionally when the task manager starts running while the alert saved objects
// are mid-migration, the task will fail and set its status to "failed". this prevents
// the alert from running ever again and downstream tasks that depend on successful alert
// execution will fail. this ensures the task status is set to "idle" so the
// task manager will continue claiming and executing it.
await supertest
.put(`${getUrlPrefix(space.id)}/api/alerts_fixture/${alertId}/reset_task_status`)
.set('kbn-xsrf', 'foo')
Expand Down

0 comments on commit 9fc6e05

Please sign in to comment.