mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 02:24:20 +00:00
Set name for swarm service.
This commit is contained in:
parent
75b587e693
commit
202ade92e9
@ -52,7 +52,7 @@ class Swarm:
|
||||
'jobs',
|
||||
str(job.id))
|
||||
+ ':/files:rw']
|
||||
_name = job.id
|
||||
_name = str(job.user_id) + '_' + str(job.id)
|
||||
'''
|
||||
' The Docker SDK for Python expects the cpu_reservation value to be
|
||||
' scaled to nanos (10^9). Because the job object contains unscaled
|
||||
@ -86,6 +86,7 @@ class Swarm:
|
||||
constraints=_constraints,
|
||||
labels=_labels,
|
||||
mounts=_mounts,
|
||||
name=_name,
|
||||
resources=_resources,
|
||||
restart_policy=_restart_policy
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user