From 4d99c529838500834350d146af1abcb07ed9dcb3 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Fri, 9 Aug 2019 09:13:24 +0200
Subject: [PATCH] Only use job_id as service name.
---
app/swarm.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/swarm.py b/app/swarm.py
index 243241af..748e4822 100644
--- a/app/swarm.py
+++ b/app/swarm.py
@@ -52,7 +52,7 @@ class Swarm:
'jobs',
str(job.id))
+ ':/files:rw']
- _name = str(job.user_id) + '_' + str(job.id)
+ _name = 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