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

Set exit code > 0 when colmena exec fails #191

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Conversation

pkel
Copy link
Contributor

@pkel pkel commented Jan 15, 2024

Hello and thanks for your great software.

I'm interested in using colmena exec <command> from other scripts. It would be helpful if colmena returned a non-zero exit code if <command> fails on some hosts. In the current version from nixos-23.11, the exit code is always 0.

The proposed change achieves this. I'm neither proficient with rust nor have I spent much time reading the code. Feel free to rewrite if you see a more appropriate solution. Also looking forward to your comments.

@zhaofengli
Copy link
Owner

Missed this PR in the inbox. LGTM, thank you!

@zhaofengli zhaofengli merged commit c84ccd0 into zhaofengli:main Jan 29, 2024
16 checks passed
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.

2 participants