]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
teuthology/suite/run.py, scripts/suite.py: disallow scheduling too many jobs 1657/head
authorNeha Ojha <nojha@redhat.com>
Thu, 1 Jul 2021 18:28:05 +0000 (18:28 +0000)
committerNeha Ojha <nojha@redhat.com>
Fri, 9 Jul 2021 21:53:05 +0000 (21:53 +0000)
commitf6cfc90d3a5af66e0c07fa85e71b59b533dc8710
tree93b66fbc94dc5863cefad35f7fb004bcaa81d089
parent26631ede9027a5643f2e47dacc5af6f1834aac45
teuthology/suite/run.py, scripts/suite.py: disallow scheduling too many jobs

Add check_num_jobs() to prevent users from accidentally scheduling too many jobs, like
in rfriedma-2021-06-26_19:32:15-rados-wip-ronenf-scrubs-config-distro-basic-smithi.
JOBS_TO_SCHEDULE_THRESHOLD, set to 500 (most runs have fewer jobs than this),
will disallow users from scheduling more than 500 jobs. Users can schedule
more than 500 jobs by disabling this check using the --disable-num-jobs-check flag.

Signed-off-by: Neha Ojha <nojha@redhat.com>
scripts/suite.py
teuthology/suite/run.py