-
-
Notifications
You must be signed in to change notification settings - Fork 719
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Moving wait_for_worker logic to cluster, and having client call that if it can * Adding test for cluster.wait_for_workers * use try and except to catch case where cluster is none or wait_for_workers is not implemented * linting * This test has been removed on main branch, but for some reason git merge didn't remove it from mine * Cluster has to use scheduler_info attribute instead of scheduler.identity * lint * reverting * need to use cluster.scale when client.wait_for_workers is called while using a cluster * need to use scheduler_info. Also, using cluster.scale to emulate behaviour of client.wait_for_workers * using scheduler_info and dont need to call scale anymore * lint * adding gen_test decorator * Don't think we need to scale at start of wait_for_workers * self.scheduler_info does not update worker status from init to running, so need to request status again * Use Status * Scale was fixing the nworkers test because it forced the worker status to update. Now that worker status is checked we don't need this (and shouldn't have really included it anyway) * Refactoring * Fixing type information * Experimenting with creating new comm * Create separate comm in _start and use that to update scheduler_info * Close new comm * initialise scheduler_info_comm * Don't allow n_workers to be zero for cluster wait_for_workers * Adding return type * Change try-catch to be an explicit if-else * Check explicitly for cluster is none, as I think it's clearer * linting * use scheduler_comm instead of opening new comm * remove update_scheduler_info method * pre-commit changes * Reduce number of works to see if it fixes github tests * Changing test to make it work in python 3.8
- Loading branch information
1 parent
1baa5ff
commit 76bbfaf
Showing
3 changed files
with
76 additions
and
1 deletion.
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