Skip to content

Commit e0059c8

Browse files
committed
fix: allow an account to be explicitly NOT set
1 parent 6348846 commit e0059c8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

snakemake_executor_plugin_slurm/__init__.py

+12-1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@ class ExecutorSettings(ExecutorSettingsBase):
8585
"required": False,
8686
},
8787
)
88+
no_account: bool = field(
89+
default=False,
90+
metadata={
91+
"help": "Do not use any account for submission. "
92+
"This flag has no effect, if not set.",
93+
"env_var": False,
94+
"required": False,
95+
},
96+
)
8897

8998

9099
# Required:
@@ -213,7 +222,9 @@ def run_job(self, job: JobExecutorInterface):
213222
f"--comment '{comment_str}'"
214223
)
215224

216-
call += self.get_account_arg(job)
225+
if not self.workflow.executor_settings.no_account:
226+
call += self.get_account_arg(job)
227+
217228
call += self.get_partition_arg(job)
218229

219230
if self.workflow.executor_settings.requeue:

0 commit comments

Comments
 (0)