Skip to content

Commit b8df036

Browse files
fix: print message if not yet enough resources for executing further jobs
1 parent 838b2fc commit b8df036

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

snakemake/scheduler.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ def schedule(self):
292292
self.workflow.dag.register_running(run)
293293

294294
if run:
295-
logger.info(f"Execute {len(run)} jobs...")
295+
if not self.dryrun:
296+
logger.info(f"Execute {len(run)} jobs...")
296297

297298
# actually run jobs
298299
local_runjobs = [job for job in run if job.is_local]
@@ -316,6 +317,10 @@ def schedule(self):
316317
)
317318
if runjobs:
318319
self.run(runjobs)
320+
elif not self.dryrun:
321+
logger.info(
322+
"No enough resources to execute further jobs (waiting)."
323+
)
319324
except (KeyboardInterrupt, SystemExit):
320325
logger.info(
321326
"Terminating processes on user request, this might take some time."

0 commit comments

Comments
 (0)