mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Remove redundant add to session.
This commit is contained in:
		@@ -101,8 +101,8 @@ class Swarm:
 | 
				
			|||||||
        ' Poll the service until the job is completly executed.
 | 
					        ' Poll the service until the job is completly executed.
 | 
				
			||||||
        '''
 | 
					        '''
 | 
				
			||||||
        session = self.Session()
 | 
					        session = self.Session()
 | 
				
			||||||
        job.status = 'running'
 | 
					 | 
				
			||||||
        session.add(job)
 | 
					        session.add(job)
 | 
				
			||||||
 | 
					        job.status = 'running'
 | 
				
			||||||
        session.commit()
 | 
					        session.commit()
 | 
				
			||||||
        current_state = None
 | 
					        current_state = None
 | 
				
			||||||
        while True:
 | 
					        while True:
 | 
				
			||||||
@@ -112,7 +112,6 @@ class Swarm:
 | 
				
			|||||||
            time.sleep(1)
 | 
					            time.sleep(1)
 | 
				
			||||||
            service.reload()
 | 
					            service.reload()
 | 
				
			||||||
        job.status = current_state
 | 
					        job.status = current_state
 | 
				
			||||||
        session.add(job)
 | 
					 | 
				
			||||||
        session.commit()
 | 
					        session.commit()
 | 
				
			||||||
        session.close()
 | 
					        session.close()
 | 
				
			||||||
        # Remove the service from the swarm.
 | 
					        # Remove the service from the swarm.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user