Skip to content

Escalations#112

Open
mahendra wants to merge 3 commits into
masterfrom
escalations
Open

Escalations#112
mahendra wants to merge 3 commits into
masterfrom
escalations

Conversation

@mahendra
Copy link
Copy Markdown

@elainearbaugh @EvanKuhn-Affirm @BlaineAtAffirm

First pass idea for adding escalations.

@mahendra
Copy link
Copy Markdown
Author

trigger build

Comment thread cabot/cabotapp/alert.py
alert.send_alert(service, users, fallback_officers)
except Exception:
logging.exception('Could not send {} alert to fallback officer'.format(alert.name))
for user_list in [duty_officers, escalation_officers, fallback_officers]:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I understand the logic here. Seems like your new code:

  1. Sends alerts to first non-empty officers list
  2. If successful, quit
  3. If an exception is thrown, check if we should escalate. If we are scheduled to escalate, then loop and alert the next set of officers. Else, quit.

Seems like if alerts are delivered successfully, we'll never escalate? Or am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants