Skip to main content

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

  1. Install the latest version of Flux
pip install flux

Flux requires Python 3.12 or later.

  1. 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.

  1. Execute the workflow locally
flux exec hello_world.py hello_world "Joe"
  1. 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flux_core-0.1.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

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

Hashes for flux_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae43d0296e40d89290c64302afa134621a254440423945b3f5b08befb3a0b64d
MD5 c64c76014b723d0054b9202fe412672e
BLAKE2b-256 f0b05bee2d63da6711df78b94c122f6fec26e14255e5a0a3d8344e103ef4a73a

See more details on using hashes here.

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

Hashes for flux_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 441e0c51761ab1f77c79040f90fc664e818465b6e3b385d223d67892a69a145e
MD5 678ba261de195022e879f05f52488ee7
BLAKE2b-256 1b455299b6b55fd47c588c59173c8fc3c51483e59654b9a4878806818deed7bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page