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

DM-38339: Handle failures during TAPQueryRunner setup #224

Merged
merged 1 commit into from
Mar 21, 2023
Merged

Conversation

rra
Copy link
Member

@rra rra commented Mar 21, 2023

TAPQueryRunner previously was creating a TAP client in init, which meant that failure to reach the TAP server caused the entire flock creation to fail. Move creation of the client to startup to correctly follow the Business API, and wrap it in a timer and better exception handling so that we get nice Slack reports.

A business wasn't counting failures during startup as a failed execution, which meant that monkeys that kept failing during startup would show as 100% successful in the summary. Increment the failure count if startup raises an exception to avoid this.

TAPQueryRunner previously was creating a TAP client in __init__,
which meant that failure to reach the TAP server caused the entire
flock creation to fail. Move creation of the client to startup to
correctly follow the Business API, and wrap it in a timer and better
exception handling so that we get nice Slack reports.

A business wasn't counting failures during startup as a failed
execution, which meant that monkeys that kept failing during startup
would show as 100% successful in the summary. Increment the failure
count if startup raises an exception to avoid this.
@rra rra enabled auto-merge March 21, 2023 18:43
@rra rra merged commit 35efcca into main Mar 21, 2023
@rra rra deleted the tickets/DM-38339 branch March 21, 2023 18:47
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.

1 participant