How to continue the last unfinished task?

Skip to first unread message

Witty Yonng

Mar 31, 2023, 11:27:56 PM3/31/23
to aiidausers
Hi everyone,

If a task has not yet finished but was stopped due to running time limit, how to continue this task and retrieve the result back to my aiida database?  Thanks~


Apr 23, 2023, 4:07:03 AM4/23/23
to aiidausers

Hello again (again ^^) Witty,

Since you were asking about the creator of a parent_folder, I’m assuming you already managed to do a restart. My other response also gave an example on how to do so.

It’s very important here that besides the parent_folder, you also adapt the parameters to instruct QE to do a restart in this case (note the parameters['ELECTRONS']['startingpot'] = 'file' line in the example I gave). We discussed having restart_mode be set to 'restart' automatically when a parent_folder is provided, but decided against it because this can cause confusing behaviour in other use cases. You can find a more elaborate discussion here:

As a side note: are you using the PwBaseWorkChain? This will automatically restart when the calculation hits the walltime.

Hope that helps! 🚀


Reply all
Reply to author
0 new messages