You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When pickling a WorkChain which contains an if_ block with more than one line in the block body, the stepper will be written incorrectly, leading to the pickle being corrupt. When trying to recreate the Process with create_from() the method will fail.
A minimal example to demonstrate this problem is the following:
The ParentWorkChain will submit the SubWorkChain causing it to be pickled. Since the SubWorkChain has two steps in the block body of the conditional, the saved state in the pickle will contain a corrupted or incomplete stepper. If you remove one of the two cls.do_print calls from the outline of the SubWorkChain everything works expected. The same goes for simply running the SubWorkChain directly in which case of course there is no pickling going on.
The text was updated successfully, but these errors were encountered:
When pickling a
WorkChain
which contains anif_
block with more than one line in the block body, the stepper will be written incorrectly, leading to the pickle being corrupt. When trying to recreate theProcess
withcreate_from()
the method will fail.A minimal example to demonstrate this problem is the following:
The
ParentWorkChain
willsubmit
theSubWorkChain
causing it to be pickled. Since theSubWorkChain
has two steps in the block body of the conditional, the saved state in the pickle will contain a corrupted or incomplete stepper. If you remove one of the twocls.do_print
calls from theoutline
of theSubWorkChain
everything works expected. The same goes for simply running theSubWorkChain
directly in which case of course there is no pickling going on.The text was updated successfully, but these errors were encountered: