-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable "deep" reconstruction of yaml deserialization mapping construc…
…tor (#3093) The yaml mapping constructor in `aiida.orm.utils.serialize` for `AttributeDicts` was not using the `deep=True` argument to recursively reconstruct nested dictionaries. Combined with the recursive constructor of the `AttributeDict` class, this would result in the loss of content of normal dictionaries nested in an attribute dict in a serialization round-trip. Since this serialization is used to store `Process` instances as checkpoints in the database, from which the daemon reloads the instance into memory after a restart, this bug resulted in the loss of information in those checkpoints. For example, if one stored a normal dictionary in the context of a `WorkChain` instance, which is an `AttributeDict`, the contents of that nested normal dictionary would not be restored when the `WorkChain` was reloaded from the checkpoint causing all sorts of exceptions in the business logic of the work chain.
- Loading branch information
Showing
2 changed files
with
81 additions
and
80 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