mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-10-31 02:32:45 +00:00 
			
		
		
		
	use job id for swarm run instead of job object
This commit is contained in:
		| @@ -48,8 +48,7 @@ def nlp(): | ||||
|             ' NOTE: Using self created threads is just for testing purpose as | ||||
|             '       there is no scheduler available. | ||||
|             ''' | ||||
|             db.session.expunge(nlp_job) | ||||
|             thread = Thread(target=swarm.run, args=(nlp_job,)) | ||||
|             thread = Thread(target=swarm.run, args=(nlp_job.id,)) | ||||
|             thread.start() | ||||
|             flash('Job created!') | ||||
|         return redirect(url_for('services.nlp')) | ||||
| @@ -101,8 +100,7 @@ def ocr(): | ||||
|             ' NOTE: Using self created threads is just for testing purpose as | ||||
|             '       there is no scheduler available. | ||||
|             ''' | ||||
|             db.session.expunge(ocr_job) | ||||
|             thread = Thread(target=swarm.run, args=(ocr_job,)) | ||||
|             thread = Thread(target=swarm.run, args=(ocr_job.id,)) | ||||
|             thread.start() | ||||
|             flash('Job created!') | ||||
|         return redirect(url_for('services.ocr')) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user