Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clever caching policy involving RemoteData #5823

Open
unkcpz opened this issue Dec 6, 2022 · 1 comment
Open

Clever caching policy involving RemoteData #5823

unkcpz opened this issue Dec 6, 2022 · 1 comment
Assignees

Comments

@unkcpz
Copy link
Member

unkcpz commented Dec 6, 2022

Next action

Have a discussion on the issue and potential solution.

Description

  • add by @jusongyu

Calculations which pass (part of) their outputs on as a RemoteData input are broken once their scratch directory is cleaned. It becomes problematic however when caching is introduced: When trying to re-run the calculation (to regenerate the remote folder), caching will happily use the existing calculation (without a remote folder). As a result, subsequent calculations which use the remote folder will fail. Moreover, the cached Calculation node point to the same remote folder which is a 'shallow copy' of the original calculation node that causes the issue when cleaning the remote workdir of cached node, the original node is unable to used for parent calculation to pass their outputs on as a RemoteData. The caching policy needs to be redesigned a bit to overcome these issues and balance with not increasing the connection burden and remote disk storage too much.

See #3735 and #5178 for more details.

AEP open at aiidateam/AEP#35

@unkcpz unkcpz self-assigned this Dec 6, 2022
@sphuber
Copy link
Contributor

sphuber commented Mar 9, 2023

See aiidateam/team-compass#13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants