Skip to content

Commit 95e5fb7

Browse files
authored
fix: added forgotten yield in case of job preemption (#148)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced job management by improving the responsiveness of active job status checks. - Added functionality to yield job information when certain conditions are met, allowing for better processing of active jobs. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 8adfbf8 commit 95e5fb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

snakemake_executor_plugin_slurm/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ async def check_active_jobs(
361361
362362
We leave it to SLURM to resume your job(s)"""
363363
)
364+
yield j
364365
elif status == "UNKNOWN":
365366
# the job probably does not exist anymore, but 'sacct' did not work
366367
# so we assume it is finished

0 commit comments

Comments
 (0)