Efficiently design and manage flexible workflows with AiiDA, featuring an interactive GUI, checkpoints, provenance tracking, and remote execution capabilities.
from aiida import orm
from aiida_workgraph import WorkGraph
wg = WorkGraph()
task = wg.add_task(
"ShellJob",
name="ls_task",
command="ls",
)
task.set({"metadata.computer": orm.load_computer('localhost')})
wg.run()
raises the error
File ~/micromamba/envs/autosubmit-dev/lib/python3.11/site-packages/aiida/orm/entities.py:241, in Entity.__getstate__(self)
239 def __getstate__(self):
240 """Prevent an ORM entity instance from being pickled."""
--> 241 raise InvalidOperation('pickling of AiiDA ORM instances is not supported.')
InvalidOperation: pickling of AiiDA ORM instances is not supported.
the code
raises the error
The whole log errorlog.txt