diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-06-15 05:47:56 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-06-15 05:47:56 +0200 |
commit | 735cbc2c774e5373b48d2c635891372faa1c4127 (patch) | |
tree | fd37cc3071a8e560487ea43707d58660e59b37ce | |
parent | fb289849c5c3550745d9eb01779488a51f14111d (diff) | |
download | refcat-735cbc2c774e5373b48d2c635891372faa1c4127.tar.gz refcat-735cbc2c774e5373b48d2c635891372faa1c4127.zip |
tasks: log to tmpdir
-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): |