Skip to content

Commit 05d4b71

Browse files
fix(executor): Pass job object to get_snakefile when formatting CLI args
- `snakemake_executor_plugin_googlebatch/executor.py`: Modified the call to `self.get_snakefile()` within `GoogleBatchExecutor.run_job` to pass the `job` object as an argument. - This change ensures that the `get_snakefile` method receives the necessary `job` context to correctly determine and format the `--snakefile` CLI argument for the Snakemake command executed on Google Batch, addressing a previously missing argument.
1 parent efcd480 commit 05d4b71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snakemake_executor_plugin_googlebatch/executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def format_job_exec(self, job: JobExecutorInterface) -> str:
142142
precommand,
143143
self.get_python_executable(),
144144
"-m snakemake",
145-
format_cli_arg("--snakefile", self.get_snakefile()),
145+
format_cli_arg("--snakefile", self.get_snakefile(job)),
146146
self.get_job_args(job),
147147
general_args,
148148
self.additional_general_args(),

0 commit comments

Comments
 (0)