mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	Set name for swarm service.
This commit is contained in:
		@@ -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
 | 
			
		||||
        )
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user