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

More examples for workflow packages in our field #34

Open
jan-janssen opened this issue Aug 6, 2024 · 2 comments
Open

More examples for workflow packages in our field #34

jan-janssen opened this issue Aug 6, 2024 · 2 comments

Comments

@jan-janssen
Copy link
Member

jan-janssen commented Aug 6, 2024

More or less domain specific

General overview page https://workflows.community/systems

Other interesting articles:

@jan-janssen
Copy link
Member Author

@jan-janssen
Copy link
Member Author

Last year PerQueue was released. I took a look at their examples and it seems to be primarily file based rather than Python function based:

from pathlib import Path

from perqueue import PersistentQueue, Task, Workflow

here = Path(__file__).parent

# Create 3 distinct workflow tasks
t1 = Task(here / "step_1.py", {"N_samples": 1_000_000_000}, "local:10m")
t2a = Task(here / "step_2a.py", {"savefig_filename": "pi-fig.png"}, "local:1m")
t2b = Task(here / "step_2b.py", None, "local:1m")

# Define dependencies - t2a and t2b depend on t1
wf = Workflow({t1: [], t2a: [t1], t2b: [t1]})

# Submit the worflow through PerQueue
with PersistentQueue() as pq:
    pq.submit(wf)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant