-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE]: add support for controlling maximum number of jobs per executor #1452
Comments
Looking at the codebase we have to make some changes. For instance right now we are just iterating over the builders and just running the test using the executor.run method buildtest/buildtest/executors/setup.py Line 362 in d905190
We need some logic in the base class https://github.com/buildtesters/buildtest/blob/devel/buildtest/executors/base.py that keeps track of number of jobs run per executor so we can implement this feature. For instance in the local executor run implementation where we dispatch the job we should check if number of active jobs running exceeds buildtest/buildtest/executors/local.py Lines 66 to 71 in d905190
|
Please describe your feature
in https://github.com/buildtesters/buildtest/blob/devel/buildtest/schemas/settings.schema.json we have a key property
max_jobs
defined that can be used to control number of jobs that can be run per executor. We should first try to implement this feature for batch jobs wheremax_jobs
signify number of concurrent jobs that can be running at a given time.We can have the following setup
Suggest potential solution
No response
Additional Information
No response
Post question in Slack
Is there an existing issue
The text was updated successfully, but these errors were encountered: