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.1.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.1-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flux_core-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 733778650645c1fb1d92d67c9880f6a387afb2655aa6a67fc066e831f016b9a9
MD5 8bc58870b2fb6b49dbe862c5451fe98e
BLAKE2b-256 6bb26316c5d0aea22a3a9e6ccb04890c09ed0689b35148b06fcb8eebf4f8f3b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flux_core-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d4afbf3a23b41d5d457c3a2474d343a171710097fa76bd889c0eb1dccabf02e
MD5 e79d55a1ed0ba59b37cd1bdbbbced7db
BLAKE2b-256 9e3d5b0636aa5e87da721147cc583bf035ae7399e7dcf53aa12b711655caf60e

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