Skip to content

Commit a41d22a

Browse files
authored
Update __init__.py
wanted to keep original code version (outcommented) present
1 parent 3023ba2 commit a41d22a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

snakemake_executor_plugin_slurm/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ async def check_active_jobs(
203203
# We use this sacct syntax for argument 'starttime' to keep it compatible
204204
# with slurm < 20.11
205205
sacct_starttime = f"{datetime.now() - timedelta(days=2):%Y-%m-%dT%H:00}"
206+
# previously we had
207+
# f"--starttime now-2days --endtime now --name {self.run_uuid}"
208+
# in line 218 - once v20.11 is definitively not in use any more,
209+
# the more readable version ought to be re-adapted
206210

207211
# this code is inspired by the snakemake profile:
208212
# https://github.com/Snakemake-Profiles/slurm

0 commit comments

Comments
 (0)