-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race condition when recording Dask cluster state
Running `covalent start` causes the config file to be updated from two processes: * the CLI runner, after `_graceful_start()` returns, and * the DaskCluster process, which records the cluster state after the cluster starts up. Unfortunately, the CLI runner previously wrote out the config it loaded into memory before starting the dispatcher process. Its ConfigManager instance was therefore unaware of any config file updates that might have happened before `_graceful_start()` returned. If the Dask cluster were to finish starting up and write out its state before the CLI runner returned from `_graceful_start()`, the CLI's config file update would obliterate the Dask cluster info. This patch refreshes the CLI app's ConfigManager instance from the on-disk config file after `_graceful_start()` and ensures that the Dask cluster finishes starting before `_graceful_start()` returns.
- Loading branch information
Showing
4 changed files
with
38 additions
and
16 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
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