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-core

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.2.tar.gz (14.6 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.2-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file flux_core-0.1.2.tar.gz.

File metadata

  • Download URL: flux_core-0.1.2.tar.gz
  • Upload date:
  • Size: 14.6 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.2.tar.gz
Algorithm Hash digest
SHA256 874935e637733527e46f028f92a65d706e6833285a804ba07a694703b7796a76
MD5 1a149a9e7e20edb8b7d0b839e3b8c68e
BLAKE2b-256 508bd131dff59f434e345eb787ce422e8e28b7d81bb0c6d87fbedd0f387c7e75

See more details on using hashes here.

File details

Details for the file flux_core-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: flux_core-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aeefdb6cea0be4f03420bb4b6a41404260a295ba458ad83a69b3ba08c0f81da6
MD5 d8c47f3ddeb1bc26fd8441a7a046ed23
BLAKE2b-256 c38e02936fb73b18e9f741a57afd2e69bf2bc03cc1d92822f2184f0a8be17fa7

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