diff --git a/snakemake_executor_plugin_cluster_generic/__init__.py b/snakemake_executor_plugin_cluster_generic/__init__.py index e3df765..853bc20 100644 --- a/snakemake_executor_plugin_cluster_generic/__init__.py +++ b/snakemake_executor_plugin_cluster_generic/__init__.py @@ -299,7 +299,7 @@ def _chunks(lst, n): if self.sidecar_vars: env["SNAKEMAKE_CLUSTER_SIDECAR_VARS"] = self.sidecar_vars subprocess.check_call( - [self.workflow.executor_settings.cancel_cmd] + chunk, + self.workflow.executor_settings.cancel_cmd.split(" ") + chunk, shell=False, timeout=cancel_timeout, env=env,