We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4397f38 commit e1575dfCopy full SHA for e1575df
1 file changed
src/snakemake/deployment/containerize.py
@@ -22,10 +22,11 @@ def containerize(workflow, dag):
22
23
# collect envs from jobs from the initial DAG.
24
conda_envs = {job.conda_env for job in dag.jobs if job.conda_env is not None}
25
+ dag_jobs = {job.name for job in dag.jobs if job.conda_env is not None}
26
27
# collect envs from rules not in the initial DAG (e.g., for rules past checkpoints)
28
for rule in workflow.rules:
- if not rule.conda_env:
29
+ if not rule.conda_env or rule.name in dag_jobs:
30
continue
31
32
env_def = rule.conda_env
0 commit comments