From 72c2f524e68b74645ea549466d4215d1b675063e Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Fri, 10 Sep 2021 09:47:32 +0200 Subject: tasks: sort needs a tmpdir --- python/refcat/techreport.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/python/refcat/techreport.py b/python/refcat/techreport.py index 4223d18..4fe5771 100644 --- a/python/refcat/techreport.py +++ b/python/refcat/techreport.py @@ -20,10 +20,11 @@ class COCIDOIOnly(Refcat): tail -n +2 | cut -d , -f2,3 | perl -F, -lane 'printf qq[%s\n], join ",", sort @F' | - LC_ALL=C sort -S25% | + LC_ALL=C sort -T {tmpdir} -S25% | zstd -c -T0 > {output} """, - input=self.input().path) + input=self.input().path, + tmpdir=self.tmpdir) luigi.LocalTarget(output).move(self.output().path) def output(self): @@ -43,10 +44,11 @@ class BrefDOIOnly(Refcat): parallel --pipe -j 24 --block 10M "jq -R -rc 'fromjson? | [.source_doi, .target_doi] | @tsv'" | tr $'\t' ',' | perl -F, -lane 'printf qq[%s\n], join ",", sort @F' | - LC_ALL=C sort -S25% | + LC_ALL=C sort -T {tmpdir} -S25% | zstd -c -T0 > {output} """, - input=self.input().path) + input=self.input().path, + tmpdir=self.tmpdir) luigi.LocalTarget(output).move(self.output().path) def output(self): -- cgit v1.2.3