Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Memory improvements (3/3): Introduce new runner and executor API (#1690)
* Mem (1/3): introduce new DAL and core Pydantic models * Mem (1/3): Fix schemas * Mem (1/3): DAL PR: temporarily redirect core dispatcher tests * Mem (1/3): DAL PR: fix tests Introduce temporary implementations of `update._node` and `update.lattice_data`. These will be removed once core covalent is transitioned to the new DAL. * Mem (1/3): Fix requirements workflow Change abs imports to rel imports. Needed to please pip-missing-reqs. * Mem (1/3): Uncomment boilerplate in disabled unit tests * Mem (1/3): Add unit test for format_server_url * Mem (1/3): defer copy_file_locally to next PR * Mem (1/3): update changelog * Mem (1/3): Core DAL improvements - Improve type hints * Mem (2/3): Revert "DAL PR: fix tests" * Mem (2/3): Revert "Mem (1/3): defer copy_file_locally to next PR" This reverts commit a3ab70b. * Mem (2/3): Revert "Mem (1/3): Uncomment boilerplate in disabled unit tests" * Mem (2/3): Revert "Mem (1/3): Fix requirements workflow" * Mem (2/3): Revert "DAL PR: temporarily redirect core dispatcher tests" This reverts commit 388df38236ebec7555ec7e83ffc1834427b46650. * Mem (2/3): Core migration -- Re-enable electron_tests * Mem (2/3): migrate core to new DAL * Mem (2/3): redirect dispatcher to in-memory runner Make API endpoints restful Cancel all dispatches upon shutdown * Mem (2/3): Update changelog * Mem (3/3): Revert "Mem (2/3): redirect dispatcher to in-memory runner" * Mem (3/3): introduce new runner and executor API * Mem (3/3): Update changelog * updated license to Apache * some fixes to make dispatching work * reverted some changes to make the funcs sync * changes after reviewing * fixing tests, removed cancel_requested from Electron model * fixing tests, sublattice issue fixed * fixing tests, cancellation issue fixed * fixing tests, sdk issue fixed * cancel_tasks import location changed * tg utils import location changed * fixing tests * fixing tests * fixing tests * fixing tests * fixing tests * fixing tests * fixing tests * fixing tests * fixing tests * fixing tests * fixing tests * fixing tests * fixing tests, skipping some ui backend tests * Fix UI backend tests * Undo some changes to UI assert data * renamed core dispatcher tests * removing the _db/load.py file * fixing license * fixing tests * fixing tests * fixing tests * reverting dask related changes * fixed dask issue * skipping test as it requires rewriting it * DAL: Remember to update Record attrs on Record.update() * Tests: force task packing for ft * Tests: Revert force task packing for ft * Tests: enable task packing during FT * SDK: don't pickle lattice_imports or cova_imports * 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. * added more dask tests * added local executor tests * added more local executor tests --------- Co-authored-by: sankalp <[email protected]>
- Loading branch information