GeezerVison is showing github.com — ✨ `aiida`: PWD via @task and @graph by GeigerJ2 · Pull Request #222 · pythonworkflow/python-workflow-definition
Conversation
Replace the workgraph adapter with generated @task/@graph source lowered to GraphIR; export GraphIR back to PWD. Static DAGs only. Pin aiida-core to current main.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@GeigerJ2 I fixed the pip installation, by adding it to the conda environment.
There are still parts in the notebooks which need to be updated:
Traceback (most recent call last):
File "/home/runner/miniconda3/envs/test/bin/papermill", line 10, in <module>
sys.exit(papermill())
^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/papermill/cli.py", line 235, in papermill
execute_notebook(
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/papermill/execute.py", line 131, in execute_notebook
raise_for_execution_errors(nb, output_path)
File "/home/runner/miniconda3/envs/test/lib/python3.12/site-packages/papermill/execute.py", line 251, in raise_for_execution_errors
raise error
papermill.exceptions.PapermillExecutionError:
---------------------------------------------------------------------------
Exception encountered at "In [9]":
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[9], line 1
----> 1 wg.run()
AttributeError: 'GraphHandle' object has no attribute 'run'
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Cheers @jan-janssen, thanks for adding the commit on top! This is still very vibey, yes, wg.run should not be there anymore... 😅
|
jan-janssen reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
codecov
Bot
commented
Nov 6, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
❌ Patch coverage is 82.93651% with 43 lines in your changes missing coverage. Please review.
📢 Thoughts on this report? Let us know!
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The workgraph package is retired. The adapter now
emits `@task` and `@graph` source, loads it through
`GraphHandle`, and runs it with `run_get_node`.
Notebooks define the workflows with the new decorators.
Dependencies pin `aiida-core` to a fixed commit.
|
@GeigerJ2 looks great to me. Once an official core version is released I am happy to merge this, I am a bit reluctant to bind to the main branch as that might change in the future and break our tests.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Hi @jan-janssen, sure, i understand the concern. We are also currently very actively working on the feature inside aiida-core itself, so, it's still quite unstable. Though, it should be fine when we pin aiida-core to a specific commit here, then tests won't suddenly break as our branch advances.
I do not want to integrate future PWD changes with the aiida-workgraph code here, as that won't be the way to go forward for us. So, I'm OK, to keep this PR open and work off of the branch for now and keep rebasing it with other changes along the way. An actual v3 release on our side is still going to take a while, so let's see how it goes.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This branch has not been deployed
No deployments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|