-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
sentry-cli monitors run
should not fail to run its command during a Sentry outage
#2169
Comments
@alexmv First of all, thank you for bringing this bug to our attention by opening this issue. I fully agree with you; with the Sorry for any inconvenience caused. I will let you know as soon as we have released a fix. |
…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
…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
Thank you for the quick fix and release! |
This version causes `sentry-cli monitors run` to not fail if Sentry is down (getsentry/sentry-cli#2169).
This version causes `sentry-cli monitors run` to not fail if Sentry is down (getsentry/sentry-cli#2169).
CLI Version
2.33.0
Operating System and Architecture
Operating System Version
Ubuntu 22.04
Link to reproduction repository
No response
CLI Command
sentry-cli monitors run -e production --schedule '* * * * *' name-of-cron-job -- /path/to/binary
Exact Reproduction Steps
Expected Results
The underlying /path/to/binary would still be run, albeit without Sentry logging it.
A failure of the logging infrastructure should not cause it to skip running the command it knows needs to run on a regular basis. That's just adding another failure mode to the system and making your outage into our outage.
If the initial check-in fails, it should continue, and run the command without monitoring.
Actual Results
The Sentry logging request failed, and it aborted, without running the underlying cron job it was wrapping.
Logs
Log with
SENTRY_LOG_LEVEL=debug
, lightly redacted:The text was updated successfully, but these errors were encountered: