forked from kedro-org/kedro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve resume pipeline suggestion (kedro-org#1795)
* Add _find_first_persistent_ancestors and stubs for supporting functions. Signed-off-by: Jannic Holzer <[email protected]> * Add body to _enumerate_parents. Signed-off-by: Jannic Holzer <[email protected]> * Add function to check persistence of node outputs. Signed-off-by: Jannic Holzer <[email protected]> * Modify _suggest_resume_scenario to use _find_first_persistent_ancestors Signed-off-by: Jannic Holzer <[email protected]> * Pass catalog to self._suggest_resume_scenario Signed-off-by: Jannic Holzer <[email protected]> * Track and return all ancestor nodes that must be re-run during DFS. Signed-off-by: Jannic Holzer <[email protected]> * Integrate DFS with original _suggest_resume_scenario. Signed-off-by: Jannic Holzer <[email protected]> * Implement backwards-DFS strategy on all boundary nodes. Signed-off-by: Jannic Holzer <[email protected]> * Switch to multi-node start BFS approach to finding persistent ancestors. Signed-off-by: Jannic Holzer <[email protected]> * Add a useful error message if no nodes ran. Signed-off-by: Jannic Holzer <[email protected]> * Add docstrings to new functions. Signed-off-by: Jannic Holzer <[email protected]> * Add catalog argument to self._suggest_resume_scenario Signed-off-by: Jannic Holzer <[email protected]> * Modify exception_fn to allow it to take multiple arguments Signed-off-by: Jannic Holzer <[email protected]> * Add test for AbstractRunner._suggest_resume_scenario Signed-off-by: Jannic Holzer <[email protected]> * Add docstring for _suggest_resume_scenario Signed-off-by: Jannic Holzer <[email protected]> * Improve formatting Signed-off-by: Jannic Holzer <[email protected]> * Move new functions out of AbstractRunner Signed-off-by: Jannic Holzer <[email protected]> * Remove bare except Signed-off-by: Jannic Holzer <[email protected]> * Fix broad except clause Signed-off-by: Jannic Holzer <[email protected]> * Access datasets __dict__ using vars() Signed-off-by: Jannic Holzer <[email protected]> * Sort imports Signed-off-by: Jannic Holzer <[email protected]> * Improve resume message Signed-off-by: Jannic Holzer <[email protected]> * Add a space to resume suggestion message Signed-off-by: Jannic Holzer <[email protected]> * Modify DFS logic to eliminate possible queue duplicates Signed-off-by: Jannic Holzer <[email protected]> * Modify catalog.datasets to catalog._data_sets w/ disabled linter warning Signed-off-by: Jannic Holzer <[email protected]> * Move all pytest fixtures to conftest.py Signed-off-by: Jannic Holzer <[email protected]> * Modify all instances of Pipeline to pipeline Signed-off-by: Jannic Holzer <[email protected]> * Fix typo in the name of TestSequentialRunnerBranchedPipeline Signed-off-by: Jannic Holzer <[email protected]> * Remove spurious assert in save of persistent_dataset_catalog Signed-off-by: Jannic Holzer <[email protected]> * Replace instantiations of Pipeline with pipeline Signed-off-by: Jannic Holzer <[email protected]> * Modify test_suggest_resume_scenario fixture to use node names Signed-off-by: Jannic Holzer <[email protected]> * Add disable=unused-argument to _save Signed-off-by: Jannic Holzer <[email protected]> * Remove resume suggestion for ParallelRunner Signed-off-by: Jannic Holzer <[email protected]> * Remove spurious try / except Signed-off-by: Jannic Holzer <[email protected]> Signed-off-by: Jannic Holzer <[email protected]> Signed-off-by: nickolasrm <[email protected]>
- Loading branch information
1 parent
0bd618c
commit 2c819a5
Showing
6 changed files
with
249 additions
and
88 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
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.