Skip to content

Commit

Permalink
renaming to 'going to run' instead of executing because when task man…
Browse files Browse the repository at this point in the history
…ager exits because of api key error it won't write the error status so the actual status is 'going to run' on the next interval. This is more accurate than being stuck on 'executing' because of an error we don't control and can't write a status for.
  • Loading branch information
dhurley14 committed Jan 18, 2020
1 parent fa1ab17 commit 45971da
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const signalRulesAlertType = ({
>(ruleStatusSavedObjectType, {
alertId, // do a search for this id.
statusDate: date,
status: 'executing',
status: 'going to run',
lastFailureAt: null,
lastSuccessAt: null,
lastFailureMessage: null,
Expand All @@ -106,7 +106,7 @@ export const signalRulesAlertType = ({
// update 0th to executing.
currentStatusSavedObject = ruleStatusSavedObjects.saved_objects[0];
const sDate = new Date().toISOString();
currentStatusSavedObject.attributes.status = 'executing';
currentStatusSavedObject.attributes.status = 'going to run';
currentStatusSavedObject.attributes.statusDate = sDate;
await services.savedObjectsClient.update(
ruleStatusSavedObjectType,
Expand Down

0 comments on commit 45971da

Please sign in to comment.