Skip to content

fix(crons): Run monitors run program on check-in failure#2171

Merged
szokeasaurusrex merged 1 commit intomasterfrom
szokeasaurusrex/fix-monitor-run
Sep 30, 2024
Merged

fix(crons): Run monitors run program on check-in failure#2171
szokeasaurusrex merged 1 commit intomasterfrom
szokeasaurusrex/fix-monitor-run

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