mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Make swarm run more generic
This commit is contained in:
parent
602ef371f8
commit
ab688e290a
@ -20,7 +20,7 @@ class Swarm:
|
||||
|
||||
def run(self, job):
|
||||
# Prepare argument values needed for the service creation.
|
||||
_command = 'ocr' \
|
||||
_command = job['service'] \
|
||||
+ ' -i /files/{}'.format(job['id']) \
|
||||
+ ' -l {}'.format(job['service_args']['lang']) \
|
||||
+ ' -o /files/{}/output'.format(job['id']) \
|
||||
@ -31,7 +31,7 @@ class Swarm:
|
||||
job['service'],
|
||||
job['service_args']['version']
|
||||
)
|
||||
_labels = {'service': 'ocr'}
|
||||
_labels = {'service': job['service']}
|
||||
_mounts = [
|
||||
'/home/compute/mnt/opaque/jobs:/files:rw',
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user