diff options
-rw-r--r-- | python/refcat/tasks.py | 13 |
1 files 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): |