The BaseRestartWorkChain
runs handlers only for the first iteration
#6307
Labels
BaseRestartWorkChain
runs handlers only for the first iteration
#6307
Describe the bug
About a year ago I noticed some strange behaviour in the
Cp2kBaseWorkChain
, which is based on the BaseRestartWorkChain. In essence, the work chain's handler would only be applied after the first iteration. After the second iteration, the same handler would not be applied:I didn't escalate the issue, because the same functionality seemed to work fine on the various AiiDAlab machines. I still don't know why 🤷 .
However, the issue popped up again in the recent aiida-cp2k PR.
I guess the bug was introduced in #5546
Steps to reproduce
Steps to reproduce the behaviour:
It is enough to submit a new example
example_base_md_reftraj_restart.py
from aiidateam/aiida-cp2k#207Expected behaviour
The handler should be called as many times as the simulation restarts.
Your environment
The text was updated successfully, but these errors were encountered: