mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nlp.git
synced 2024-11-14 07:35:41 +00:00
Fix zip switch integration
This commit is contained in:
parent
e4ef4835e5
commit
ec2cf1dcff
7
nlp
7
nlp
@ -35,14 +35,12 @@ def parse_arguments():
|
|||||||
help='total number of cores available',
|
help='total number of cores available',
|
||||||
required=False,
|
required=False,
|
||||||
type=int)
|
type=int)
|
||||||
parser.add_argument(
|
parser.add_argument('--zip',
|
||||||
'--zip',
|
|
||||||
action='store_true',
|
action='store_true',
|
||||||
default=False,
|
default=False,
|
||||||
dest='zip',
|
dest='zip',
|
||||||
help='package result files in zip bundles',
|
help='package result files in zip bundles',
|
||||||
required=False
|
required=False)
|
||||||
)
|
|
||||||
return parser.parse_args()
|
return parser.parse_args()
|
||||||
|
|
||||||
|
|
||||||
@ -100,6 +98,7 @@ class NLPWorkflow(WorkflowRunner):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if zip:
|
||||||
vrt_zip_jobs = []
|
vrt_zip_jobs = []
|
||||||
vrt_zip_job_dependencies = nlp_jobs
|
vrt_zip_job_dependencies = nlp_jobs
|
||||||
cmd = 'cd "%s" && zip -m vrt.zip */*.vrt -x "pyflow.data*" && cd -' % (
|
cmd = 'cd "%s" && zip -m vrt.zip */*.vrt -x "pyflow.data*" && cd -' % (
|
||||||
|
@ -5,7 +5,7 @@ import argparse
|
|||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
container_image = 'gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/nlp:2.1.0'
|
container_image = 'gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/nlp:latest'
|
||||||
container_input_dir = '/input'
|
container_input_dir = '/input'
|
||||||
container_output_dir = '/output'
|
container_output_dir = '/output'
|
||||||
uid = str(os.getuid())
|
uid = str(os.getuid())
|
||||||
|
Loading…
Reference in New Issue
Block a user