Flux is a distributed workflow orchestration engine to build stateful and fault-tolerant workflows.
Project description
flux
Flux is a distributed workflow orchestration engine to build stateful and fault-tolerant workflows.
Getting started
- Install the latest version of Flux
pip install flux
Flux requires Python 3.12 or later.
- Create your first Workflow
from flux import task, workflow, WorkflowExecutionContext
@task
def say_hello(name: str):
return f"Hello, {name}"
@workflow
def hello_world(ctx: WorkflowExecutionContext[str]):
return (yield say_hello(ctx.input))
if __name__ == "__main__":
ctx = hello_world.run("Joe")
print(ctx.to_json())
For more examples, checkout the examples folder.
- Execute the workflow locally
flux exec hello_world.py hello_world "Joe"
- If you prefer via API
flux start examples
curl --location 'localhost:8000/hello_world' \
--header 'Content-Type: application/json' \
--data '"Joe"'
Features
- High-Performance
- Fault-Tolerance
- Durable Execution
- Parallelism
Next Steps
- Checkout the tutoarials and examples
- Learn how to configure and deploy Flux on different environments
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flux_core-0.1.0.tar.gz
(14.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
flux_core-0.1.0-py3-none-any.whl
(19.2 kB
view details)
File details
Details for the file flux_core-0.1.0.tar.gz.
File metadata
- Download URL: flux_core-0.1.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.7 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae43d0296e40d89290c64302afa134621a254440423945b3f5b08befb3a0b64d
|
|
| MD5 |
c64c76014b723d0054b9202fe412672e
|
|
| BLAKE2b-256 |
f0b05bee2d63da6711df78b94c122f6fec26e14255e5a0a3d8344e103ef4a73a
|
File details
Details for the file flux_core-0.1.0-py3-none-any.whl.
File metadata
- Download URL: flux_core-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.7 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
441e0c51761ab1f77c79040f90fc664e818465b6e3b385d223d67892a69a145e
|
|
| MD5 |
678ba261de195022e879f05f52488ee7
|
|
| BLAKE2b-256 |
1b455299b6b55fd47c588c59173c8fc3c51483e59654b9a4878806818deed7bf
|