-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement method for JobCalculation to create a restart builder (#1962)
The `get_builder` method will return a "clean" builder for the given `JobProcess`, without any inputs defined. Here we implement `get_builder_restart` for the `JobCalculation` that will also return a `JobProcessBuilder` but with the inputs and options pre-set with those that were used for the original node. The builder can then immediately be resubmitted to run another instance of that calculation, while of course giving the chance to change one or more inputs. For example: calculation = load_node(<pk>) # Some completed JobCalculation node builder = calculation.get_builder_restart() results = run(builder)
- Loading branch information
Showing
3 changed files
with
82 additions
and
3 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