-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat: cancel workflow#127 #139
Conversation
WalkthroughThe changes involve the reorganization of Snakemake documentation regarding executor behavior, specifically the handling of job failures. A new boolean attribute, Changes
Possibly related PRs
Poem
Tip New featuresWalkthrough comment now includes:
Notes:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (1)
docs/further.md (1)
186-187
: LGTM with a minor suggestion!The code changes are approved. However, please consider the following suggestion to improve the sentence structure:
Remove the comma before "if" in the sentence "Snakemake will proceed to submit independent jobs, if a job fails." The sentence should be:
Snakemake will proceed to submit independent jobs if a job fails.
Tools
LanguageTool
[typographical] ~186-~186: Usually, there’s no comma before “if”.
Context: ... will proceed to submit independent jobs, if a job fails. This plugin offers an addi...(IF_NO_COMMA)
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (2)
- docs/further.md (2 hunks)
- snakemake_executor_plugin_slurm/init.py (2 hunks)
Additional context used
LanguageTool
docs/further.md
[typographical] ~186-~186: Usually, there’s no comma before “if”.
Context: ... will proceed to submit independent jobs, if a job fails. This plugin offers an addi...(IF_NO_COMMA)
Additional comments not posted (4)
docs/further.md (2)
182-183
: LGTM!The code changes are approved.
184-185
: LGTM!The code changes are approved.
snakemake_executor_plugin_slurm/__init__.py (2)
45-56
: LGTM!The new
cancel_workflow_upon_failure
attribute in theExecutorSettings
class looks good. It is well-documented and has a sensible default value.
391-392
: LGTM!The conditional check for the
cancel_workflow_upon_failure
setting in thecheck_active_jobs
function looks good. It correctly invokes thecancel_jobs
method with the list of active jobs when a job has failed and the setting is enabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- snakemake_executor_plugin_slurm/init.py (2 hunks)
Files skipped from review as they are similar to previous changes (1)
- snakemake_executor_plugin_slurm/init.py
ok, cool - this PR successfully completes all tests. Ready to merge? @johanneskoester |
This does not really make sense as a function inside an executor. Instead, it makes sense as a flag for Snakemake itself, next to --keep-going, and can be implemented in an executor agnostic way. |
The place to add this would be snakemake/scheduler.py in there error handling method there. |
adds the
--slurm-cancel-workflow-upon-failure
flag, which allows cancelling the entire workflows upon job failure, superseeds--keep-going
.Summary by CodeRabbit
New Features
--keep-going
flag and its interaction with the new cancellation setting.Documentation