Skip to content
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

Setting computer in ShellJob raises pickle error #290

Closed
agoscinski opened this issue Sep 5, 2024 · 0 comments · Fixed by #291
Closed

Setting computer in ShellJob raises pickle error #290

agoscinski opened this issue Sep 5, 2024 · 0 comments · Fixed by #291
Labels
bug Something isn't working

Comments

@agoscinski
Copy link
Contributor

the code

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 whole log
errorlog.txt

@agoscinski agoscinski changed the title Setting computer in ShellJob raises PickleError Setting computer in ShellJob raises pickle error Sep 5, 2024
@superstar54 superstar54 added the bug Something isn't working label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants