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

Refactor to capture exit_status for successful runs #272

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Conversation

jaamarks
Copy link
Collaborator

@jaamarks jaamarks commented Apr 12, 2024

The submission script would incorrectly report a workflow error even when it finished successfully. This was due to the inline exit_status assignment logic, which only captured unsuccessful runs, leaving the exit_status variable unassigned for successful runs. This resulted in an "unbound variable" error message in the logs. To address this issue, we moved the exit_status assignment to the next line (not inline) to ensure that the variable is properly assigned even for successful runs (exit code 0) of the snakemake command. This change resolves the issue and ensures accurate reporting of workflow status.

Fixes #262

The submission script would incorrectly report a workflow error even
when it finished successfully. This was due to the inline exit_status
assignment logic, which only captured unsuccessful runs, leaving the
exit_status variable unassigned for successful runs. This resulted in an
"unbound variable" error message in the logs. To address this issue, we
moved the exit_status assignment to the next line (not inline) to ensure
that the variable is properly assigned even for successful runs
(exit code 0) of the snakemake command. This change resolves the issue
and ensures accurate reporting of workflow status.

Fixes #262
@jaamarks jaamarks merged commit 45f2764 into default Apr 12, 2024
2 checks passed
@jaamarks jaamarks deleted the issue-262 branch April 12, 2024 16:55
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.

Incorrect Completion Status: Workflow Completes but Logs Indicate Error
1 participant