Skip to content
Snippets Groups Projects
Commit 202ade92 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Set name for swarm service.

parent 75b587e6
No related branches found
No related tags found
No related merge requests found
......@@ -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
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment