Skip to content

Commit a59587e

Browse files
committed
fix DAG building when checkpoints are included
1 parent 6429a49 commit a59587e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bioproject/{{ cookiecutter.project_slug }}/scripts/workflow_functions.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,13 @@ def runSmk(smk, configfile, wdir, profile):
127127
)
128128
_stdout, _stderr = rg.communicate()
129129
# Some snakemake versions still print that 'building' line in stdout. Get rid of it.
130-
_stdout = _stdout.decode('utf-8').replace('Building DAG of jobs...\n', '').encode()
130+
_stdout = (
131+
_stdout
132+
.decode('utf-8')
133+
.replace('Building DAG of jobs...\n', '')
134+
.replace("Updating checkpoint dependencies.\n", "")
135+
.encode()
136+
)
131137

132138
if rg.returncode != 0:
133139
print(f"[bold red]Dryrun failed - return {rg.returncode}[/bold red]")

0 commit comments

Comments
 (0)