Skip to content

Commit 75cb598

Browse files
fix: format output files in job cleanup message such that their remote query is shown instead of the local copy
1 parent 65a5360 commit 75cb598

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/snakemake/dag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2415,7 +2415,7 @@ async def collect_potential_dependencies(self, job, known_producers):
24152415
),
24162416
False,
24172417
)
2418-
except MissingRuleException as ex:
2418+
except MissingRuleException:
24192419
# no dependency found
24202420
yield PotentialDependency(file, None, False)
24212421

src/snakemake/jobs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -957,9 +957,10 @@ async def cleanup(self):
957957
]
958958
)
959959
if to_remove:
960+
formatted = ", ".join(map(fmt_iofile, to_remove))
960961
logger.info(
961-
"Removing output files of failed job {}"
962-
" since they might be corrupted:\n{}".format(self, ", ".join(to_remove))
962+
f"Removing output files of failed job {self}"
963+
f" since they might be corrupted:\n{formatted}"
963964
)
964965
for f in to_remove:
965966
await f.remove()

0 commit comments

Comments
 (0)