Skip to content

Commit 055bac1

Browse files
authored
Merge pull request #2131 from ceph/fis-lis
supervisor: Avoid prematurely pushing some jobs
2 parents 6821cc8 + 650391f commit 055bac1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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)