Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escalations #112

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Escalations #112

wants to merge 3 commits into from

Conversation

mahendra
Copy link

@elainearbaugh @EvanKuhn-Affirm @BlaineAtAffirm

First pass idea for adding escalations.

@mahendra
Copy link
Author

trigger build

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]:

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