refs #2615 return 409 on >1 background jobs

http409
Natalia Serrano 2025-08-08 13:12:21 +02:00
parent 40064be81d
commit e8e858d4ce
1 changed files with 1 additions and 1 deletions

View File

@ -508,7 +508,7 @@ class ogLiveWorker(ServerWorker):
break
if any_job_running:
logger.info ('some job is already running, refusing to launch another one')
return { 'job_id': None, 'message': 'some job is already running, refusing to launch another one' }
raise Exception ({ '_httpcode': 409, '_msg': 'some job is already running, refusing to launch another one' })
job_id = '{}-{}'.format (name, ''.join (random.choice ('0123456789abcdef') for _ in range (8)))
import queue