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

Support store_provenance in normal task #338

Open
superstar54 opened this issue Oct 11, 2024 · 0 comments
Open

Support store_provenance in normal task #338

superstar54 opened this issue Oct 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@superstar54
Copy link
Member

There is no provenance stored for a normal task. If the user wants to store the provenance, they need to switch to calcfunction or PythonJob. But the downsides are

  • calcfunction needs AiiDA nodes as input and output
  • PythonJob requires the module to be importable in the working computer.

Is it possible to combine the upsides of the above tasks: 1) can be run locally; 2) automatically serialize inputs and outputs. Maybe we could add store_provenance argument for a normal task, e.g.,

@task()
def add(x, y):
    return x + y

wg = WorkGraph()
add_task = wg.add_task(add, name="add1", x=1, y=2,
                       store_provenance=True,)
wg.run()
@superstar54 superstar54 added the enhancement New feature or request label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant