-
Notifications
You must be signed in to change notification settings - Fork 207
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
Continuing a process from PARSING phase loses retrieved temp folder #4783
Comments
or alternatively (as noted by @sphuber) you could re-do the retrieval
|
@sphuber I'm really not sure this ever worked lol, because there is multiple places in the code that would stop this being possible. For example, you would also need to change here: aiida-core/aiida/engine/daemon/execmanager.py Lines 352 to 360 in c07e3ef
you would need to rework this so that if the retrieved folder already exists and |
Originally posted by @chrisjsewell in #4648 (comment)
@sphuber it seems here:
aiida-core/aiida/engine/processes/calcjobs/tasks.py
Lines 390 to 395 in c07e3ef
the temp_folder is created fresh everytime you reach this part of the code. So if the daemon worker is stopped during the parsing, and a new daemon worker picks up the task when the daemon is restarted, it will get a new temp_folder (and also the old temp_folder will not be removed), but the retrieval will be skipped and you ed up with an empty temp_folder:
aiida-core/aiida/engine/processes/calcjobs/tasks.py
Lines 236 to 238 in c07e3ef
so perhaps the temp_folder location should be stored on the node, e.g. something like
The text was updated successfully, but these errors were encountered: