-
Notifications
You must be signed in to change notification settings - Fork 913
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor run methods more into abstract method (#4353)
* First refactor step to make _run() implementations more similar Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * Move common logic to abstract _run method, use executor for sequential runner as well Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * Refactor max workers logic into shared helper method Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * Add resume scenario logic Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * Small cleanup Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * Clean up Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * Fix mypy checks Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * Fix sequential runner test Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * Fix thread runner Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * Ignore coverage for abstract method Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * Try fix thread runner test on 3.13 Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * Fix thread runner test Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * Fix sequential runner test on windows Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * More flexible options for resume suggestion in thread runner tests Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * Clean up + make resume tests the same Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * Update tests/runner/test_sequential_runner.py Signed-off-by: Merel Theisen <49397448+merelcht@users.noreply.github.com> * Clean up Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * Address review comments Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> * Apply suggestions from code review Co-authored-by: Ivan Danov <idanov@users.noreply.github.com> Signed-off-by: Merel Theisen <49397448+merelcht@users.noreply.github.com> * Fix lint Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> --------- Signed-off-by: Merel Theisen <merel.theisen@quantumblack.com> Signed-off-by: Merel Theisen <49397448+merelcht@users.noreply.github.com> Co-authored-by: Ivan Danov <idanov@users.noreply.github.com>
- Loading branch information
Showing
7 changed files
with
247 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.