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 tutorials 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.3.tar.gz (15.4 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.3-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flux_core-0.1.3.tar.gz
  • Upload date:
  • Size: 15.4 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.3.tar.gz
Algorithm Hash digest
SHA256 6cdf7f6fd33901b300aa8e8e8c7628dcbda0ae73d34ad0c5ac10f577bde85a2e
MD5 915e5b7277415910ceadcf9a5eb6d1ee
BLAKE2b-256 895673929fa19f78bd55186d558e2068fc7d87aa34afd6d1a24e8d02063f262b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flux_core-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 19.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a13c3f91ecc3fb62e2446d308b46180258af46ae75de1ad2c325c40d1b5426d5
MD5 1ae995f1cbabb37c6497b7f77b265bf8
BLAKE2b-256 dc5ef180a6f111fc269c86948637fe901f6e633a809b8d9e906df6913019a49c

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