-
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.
BaseRestartWorkChain
: require process handlers to be instance metho…
…ds (#3782) The original implementation of the `register_process_handler` allowed an unbound method to be bound to a subclass of `BaseRestartWorkChain` outside of its scope. Since this also makes it possible to attach these process handlers from outside of the module of the work chain, this will run the risk of the loss of provenance. Here we rename the decorator to `process_handler` and it can only be applied to instance methods. This forces the handlers to be defined in the same module as the work chain to which they apply.
- Loading branch information
Showing
4 changed files
with
178 additions
and
178 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
Oops, something went wrong.