aiidateam / aiida-workgraph

Efficiently design and manage flexible workflows with AiiDA, featuring an interactive GUI, checkpoints, provenance tracking, and remote execution capabilities.
https://aiida-workgraph.readthedocs.io/en/latest/
MIT License
9 stars 5 forks source link

Add `Awaitable` task decorator #236

Closed superstar54 closed 3 weeks ago

superstar54 commented 4 weeks ago

To make more precise control over the WorkGraph, we need allow user to add some custom awaitable task. Possible use cases:

Cross-WorkGraph Dependencies: allows adding a task that checks the state of another task inside a different workgraph. Time trigger: start a task until a given time Task monitor: monitor the state of a task and determine what's to do for a special event.