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