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

add a new cleanup function to run_snakefile.sh file and then call it as part of main() function #96

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

Conversation

DininduSenanayake
Copy link
Collaborator

this is to address #95

  1. Added a new cleanup_files function that:
  • Uses the existing logging function for consistency
  • Performs the same checks as your cleanup script
  • Returns success/failure status
  1. Modified the main function to:
  • Track workflow success with a boolean variable
  • Only attempt cleanup if the workflow completed successfully
  • Log the cleanup results
  1. Added proper error handling and logging for the cleanup process

The cleanup will only run if:

  • Both Snakefiles complete successfully
  • FAILED_CONFIG is empty
  • FAILED_DB has at most one file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant