1. Sean Davis
  2. Snakemake

Commits

Johannes Köster  committed 472a186

Make temp file handling ignore jobs that do not need to run.

  • Participants
  • Parent commits 0d734e6
  • Branches master

Comments (0)

Files changed (2)

File snakemake/dag.py

View file
  • Ignore whitespace
         """ Remove temp files if they are no longer needed. """
         needed = lambda job_, f: any(f in files
             for j, files in self.depending[job_].items()
-            if not self.finished(j) and j != job)
+            if not self.finished(j) and self.needrun(j) and j != job)
 
         def unneeded_files():
             for job_, files in self.dependencies[job].items():

File tests/test12/Snakefile

View file
  • Ignore whitespace
+
 rule rule1:
 	input: 'test.inter'
 	output: 'test.out'