Skip to content

Commit 41a52fd

Browse files
committed
fix: init_seconds_before_status_checks must be a positive integer - adjusted help message and validator
1 parent a40a3c0 commit 41a52fd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

snakemake_executor_plugin_slurm/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ class ExecutorSettings(ExecutorSettingsBase):
154154
default=40,
155155
metadata={
156156
"help": "Defines the time in seconds before the first status "
157-
"check is performed on submitted jobs.",
157+
"check is performed on submitted jobs. Must be a positive "
158+
"integer",
158159
},
159160
)
160161

snakemake_executor_plugin_slurm/validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def validate_executor_settings(settings, logger=None):
132132
if settings.init_seconds_before_status_checks is not None:
133133
if (
134134
not isinstance(settings.init_seconds_before_status_checks, int)
135-
or settings.init_seconds_before_status_checks < 0
135+
or settings.init_seconds_before_status_checks > 0
136136
):
137137
raise WorkflowError(
138138
"init-seconds-before-status-checks must be a positive integer."

0 commit comments

Comments
 (0)