Closed slaube-jgu closed 1 month ago
The recent changes introduce a requeue
boolean field to the ExecutorSettings
class, allowing users to specify whether preempted or failed jobs should be requeued. This field is initialized with a default value of False
and integrates with the SLURM job scheduler by adding the --requeue
flag to the sbatch
command when enabled. The logic in the run_job
method has been updated to reflect this new functionality.
Files | Change Summary |
---|---|
snakemake_executor_plugin_slurm/__init__.py |
Introduced a requeue boolean field to ExecutorSettings , defaulting to False , and modified run_job to append --requeue to the command if the flag is enabled. |
tests/tests.py |
Renamed TestWorkflowsBase to TestWorkflows , updated get_executor_settings to return ExecutorSettings , and added TestWorkflowsRequeue subclass to test the requeue functionality. |
warn_on_jobcontext
method in the ExecutorSettings
class, which may interact with job submission processes, although it does not directly relate to the new requeue
functionality.run_job
method in the ExecutorSettings
class, which is directly related to job submission and may be impacted by the new requeue
feature introduced in the main PR.🐰 In code we hop, with settings bright,
Arequeue
flag brings jobs to light.
When failures strike, don’t fear the fall,
With SLURM’s help, we’ll stand up tall!
So here’s to changes, swift and neat,
Let’s celebrate with a happy beat! 🎉
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?
@johanneskoester I requested your review, because locally testworkflows run just fine and our change yields valid Python types, where the CI thinks a None-Type is given. Ideas?
The tests still fail - while working locally, the CI claims
FAILED tests/tests.py::TestWorkflowsBase::test_simple_workflow - AttributeError: 'NoneType' object has no attribute 'requeue'
ah, wanted to look into this CI issue - turns out, I cannot find this branch. WTF???
I see. Cool! Thanks!
added option for users to indicate the sbatch requeue flag if the cluster configuration does no re-queuing on default
this is a boolean flag. We wait for the interface_plugin to be fixed.
Summary by CodeRabbit
--requeue
flag to the job submission command for enhanced control over job handling.