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

Exit with non-zero if any job failed or was skipped #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kevinoconnor7
Copy link

Currently any errors coming the underlying tarsnap commands are logged. This is not threaded back to the entrypoint of the application though, so we end up exiting with a zero code despite one or more of the jobs having failed. This makes monitoring the status of tarsnapper impossible. One would have to know to regularly check its logs to ensure it's actually backing things up.

Fixes #39

Currently any errors coming the underlying tarsnap commands are logged. This is
not threaded back to the entrypoint of the application though, so we end up
exiting with a zero code despite one or more of the jobs having failed. This
makes monitoring the status of tarsnapper impossible. One would have to know to
regularly check its logs to ensure it's actually backing things up.

Fixes miracle2k#39
@jeffwidman
Copy link
Contributor

Ooh, I didn't even realize it always returned 0, would be great to see this merged.

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.

set error exit status when backup not done
2 participants