-
Notifications
You must be signed in to change notification settings - Fork 912
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 <[email protected]> * Move common logic to abstract _run method, use executor for sequential runner as well Signed-off-by: Merel Theisen <[email protected]> * Refactor max workers logic into shared helper method Signed-off-by: Merel Theisen <[email protected]> * Add resume scenario logic Signed-off-by: Merel Theisen <[email protected]> * Small cleanup Signed-off-by: Merel Theisen <[email protected]> * Clean up Signed-off-by: Merel Theisen <[email protected]> * Fix mypy checks Signed-off-by: Merel Theisen <[email protected]> * Fix sequential runner test Signed-off-by: Merel Theisen <[email protected]> * Fix thread runner Signed-off-by: Merel Theisen <[email protected]> * Ignore coverage for abstract method Signed-off-by: Merel Theisen <[email protected]> * Try fix thread runner test on 3.13 Signed-off-by: Merel Theisen <[email protected]> * Fix thread runner test Signed-off-by: Merel Theisen <[email protected]> * Fix sequential runner test on windows Signed-off-by: Merel Theisen <[email protected]> * More flexible options for resume suggestion in thread runner tests Signed-off-by: Merel Theisen <[email protected]> * Clean up + make resume tests the same Signed-off-by: Merel Theisen <[email protected]> * Update tests/runner/test_sequential_runner.py Signed-off-by: Merel Theisen <[email protected]> * Clean up Signed-off-by: Merel Theisen <[email protected]> * Address review comments Signed-off-by: Merel Theisen <[email protected]> * Apply suggestions from code review Co-authored-by: Ivan Danov <[email protected]> Signed-off-by: Merel Theisen <[email protected]> * Fix lint Signed-off-by: Merel Theisen <[email protected]> --------- Signed-off-by: Merel Theisen <[email protected]> Signed-off-by: Merel Theisen <[email protected]> Co-authored-by: Ivan Danov <[email protected]>
- 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.