From 735cbc2c774e5373b48d2c635891372faa1c4127 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Tue, 15 Jun 2021 05:47:56 +0200 Subject: tasks: log to tmpdir --- python/refcat/tasks.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/python/refcat/tasks.py b/python/refcat/tasks.py index d33aaa8..650ad76 100644 --- a/python/refcat/tasks.py +++ b/python/refcat/tasks.py @@ -1287,11 +1287,16 @@ class BrefCombined(Refcat): } def run(self): + ts = datetime.datetime.now().strftime("%Y%m%d%H%M%S") + logfile = os.path.join(self.tmpdir, "refcat-bref-combined-{}.log".format(ts)) output = shellout(""" - skate-reduce -m unmatched -B <(zstdcat -T0 {matched}) -F <(zstdcat -T0 {refs}) > {output} - """, - matched=self.input().get("matched").path, - refs=self.input().get("refs").path) + skate-reduce -log {logfile} -m unmatched + -B <(zstdcat -T0 {matched}) + -F <(zstdcat -T0 {refs}) > {output} + """, + logfile=logfile, + matched=self.input().get("matched").path, + refs=self.input().get("refs").path) luigi.LocalTarget(output).move(self.output().path) def output(self): -- cgit v1.2.3