-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reworked job submission system (#803)
* Add placement name and class in error feedback * Reorganisation of Pool and introduce error handling in master process * Update dependencies with mpipool * remove job id system * Update in the job pool scheme * removed event_loop argument * Remove register_pool_listeners * Renew the test_jobs suite Add new tests for single and multiple jobs submissions, testing cancel job and listeners usage. * Renewed job pool scheme Simplify arguments handling for job execution methods Cancel method is added for jobs queue_function renamed in queue Modify condition for execution loop Add breaking condition for listeners * Fix errors Fixed run_placement Fixed ConnectivityJob Fixed the pool execution loop Fixed test Make Listeners to raise errors * Remove exception raise from run_placement and run_connectivity * Listeners handling moved to scaffold * Fix run_after methods Move some cancel job tests to only parallel scheduler Fix wrong argument in run_after methods * Added expect failures and skip in unit tests * Add SubmissionContext class * Remodel Submission class and add tests * Add test for submit context in no node case * Change Job results results handling is changed, now results are stored in tmp files * Test adjusted for new get and set result * Add a function to clean the listeners list * Add delay before listeners last call * Fix listeners usage in tests * Switch to pickle for tmp file w/r * wip tests * Add PoolProgress class to handle contex with listeners * update deps * Pool rework finalized. Broken morphology pickling error * parallel execution fixed, serial needs touch up * changed imports, add docstr * lint * remove `test_entities` (old NEST based entities test, now relays) * update to mpipool with shutdown(wait, cancel_futures) support * fix unsupported pickling of morphology return value * fix test flake * fix serial error raising, store unhandled errors and raise in notify * fixed tests * fix tests * fix docs * leave comment why that's there * fixed fixme, didnt need fixing * unskip tests * fix deadlock that occurs exclusively on GHA * try to print the error on GHA * fixed weird exception context error with a workaround. * Address review comments * Apply suggestions from code review * added docs * fix flow of pool based core functions --------- Co-authored-by: Robin De Schepper <robin.deschepper93@gmail.com>
- Loading branch information
Showing
26 changed files
with
1,209 additions
and
442 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,5 @@ bsb-*/ | |
# Merge note: NRRD & jupyter checkpoints | ||
*.nrrd | ||
.ipynb_checkpoints | ||
|
||
bsb/services/try_tmp.py |
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
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.