Skip to content

Commit 650391f

Browse files
committed
supervisor: Avoid prematurely pushing some jobs
This is a follow-up to ff615aa; it caused us to submit the first-in-suite and last-in-suite jobs to paddles. Those present has having 'unknown' status, which will be confusing to users. Signed-off-by: Zack Cerza <zack@cerza.org>
1 parent f02d889 commit 650391f

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

teuthology/dispatcher/supervisor.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ def main(args):
4242
except SkipJob:
4343
return 0
4444

45-
report.try_push_job_info({
46-
'name': job_config['name'],
47-
'job_id': job_config['job_id'],
48-
'pid': os.getpid(),
49-
})
45+
if not (job_config.get('first_in_suite') or job_config.get('last_in_suite')):
46+
report.try_push_job_info({
47+
'name': job_config['name'],
48+
'job_id': job_config['job_id'],
49+
'pid': os.getpid(),
50+
})
5051

5152
# reimage target machines before running the job
5253
if 'targets' in job_config:

0 commit comments

Comments
 (0)