Skip to content

Conversation

szokeasaurusrex
Copy link
Member

Fix a bug where a failure in sending the crons checkin before running the program in the monitors run command (e.g. due to a Sentry outage) would cause the program to be prevented from running. Now, we instead log the error and continue running the program.

Also, ensure that a failure in sending the final checkin (after the program has finished) does not cause the program to exit with a different exit code. sentry-cli monitors run should propagate the exit code of the program it runs.

Fixes #2169

…fails

Fix a bug where a failure in sending the crons checkin before running the program in the `monitors run` command (e.g. due to a Sentry outage) would cause the program to be prevented from running. Now, we instead log the error and continue running the program.

Also, ensure that a failure in sending the final checkin (after the program has finished) does not cause the program to exit with a different exit code. `sentry-cli monitors run` should propagate the exit code of the program it runs.

Fixes #2169
@szokeasaurusrex szokeasaurusrex merged commit 928a2b5 into master Sep 30, 2024
14 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/fix-monitor-run branch September 30, 2024 12:42
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.

sentry-cli monitors run should not fail to run its command during a Sentry outage

2 participants