Skip to content

Commit d220e9a

Browse files
authored
Merge pull request #93 from SAP/fixes
Allow a single job to be restarted if a child is queued, fixes #62
2 parents 1c35502 + 8804581 commit d220e9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/api/handlers/projects/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def get(self, project_id, job_id):
240240
if j['id'] not in restart_jobs:
241241
continue
242242

243-
if j['state'] not in restart_states and j['state'] != 'skipped':
243+
if j['state'] not in restart_states and j['state'] not in ('skipped', 'queued'):
244244
abort(400, 'Some children jobs are still running')
245245

246246
for j in restart_jobs:

0 commit comments

Comments
 (0)