Skip to content

Commit

Permalink
Merge pull request #272 from NCI-CGR/issue-262
Browse files Browse the repository at this point in the history
Refactor to capture exit_status for successful runs
  • Loading branch information
jaamarks authored Apr 12, 2024
2 parents 458b6bb + 809c14f commit 45f2764
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cgr_gwas_qc/cluster_profiles/snakemake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ run_workflow() {
{{ python_executable }} -m cgr_gwas_qc snakemake \
--local-cores {{ local_tasks }} \
--profile {{ profile }} \
{{ added_options }} || exit_status=$? # Don't exit on failure, see why we exited
{{ added_options }}
exit_status=$?

if (( exit_status != 0 )) && log_says_locked; then
exit 42
Expand Down

0 comments on commit 45f2764

Please sign in to comment.