Skip to content

Commit

Permalink
Keep temp() output of checkpoint (see snakemake#823)
Browse files Browse the repository at this point in the history
The output of checkpoint rules may be needed by other rules, which, at this point have not had a chance to add their file requirements to their depending list.
  • Loading branch information
epruesse committed Oct 2, 2021
1 parent 0503a73 commit e757bfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snakemake/dag.py
Expand Up @@ -617,7 +617,7 @@ def unneeded_files():
yield from filterfalse(partial(needed, job_), tempfiles & files)

# temp output
if not job.dynamic_output and (
if not job.dynamic_output and not job.is_checkpoint (
job not in self.targetjobs or job.rule.name == self.workflow.first_rule
):
tempfiles = (
Expand Down

0 comments on commit e757bfd

Please sign in to comment.