Open source task orchestration

Your Python.In motion.

Upload a task. Give it a payload. TaskFlow queues the work, scales the workers, and tracks task state.

Run TaskFlow locally

Your infrastructure. Your code. MIT licensed.

process_data.py
# You write the work.
async def handler(payload):
    result = await process(payload)
    return {"result": result}
TaskFlow handles the rest. Simulation
✓ status stored in PostgreSQLtask.complete

An execution model, not a live cluster.

2 → 20Workers that scale
with queue depth
02Priority queues.
Urgent work goes first.
def / asyncYour existing Python.
Both supported.

Write the function.
Let the system
carry the workload.

The path from Python code to distributed execution shouldn’t require a new container image every time you change a function.

More work arrives.
More workers show up.

KEDA watches the Redis queue and adjusts your worker fleet. Explore the idea below.

Worker fleet02 / 20
Baseline capacity. Ready for work.KEDA + Redis

Illustrative scaling states. Actual scaling follows queue depth.

01

Change code. Keep running.

Upload custom Python tasks at runtime. Workers load your handler without a container rebuild.

02

Give urgent work its own lane.

Separate high and low priority queues keep critical tasks from waiting behind routine work.

03

Keep task state in sight.

Task history and status persist in PostgreSQL. Follow task states through the REST API.

A small start.
A distributed system.

Bring Docker, Minikube, and kubectl. The repository’s Makefile handles the local deployment.

Read the setup guide
  1. Get the source

    git clone https://github.com/dhruvkshah75/TaskFlow.git
  2. Enter the project

    cd TaskFlow
  3. Start the local stack

    make run-local

    Builds images and deploys services with autoscaling.

Your tasks.
Your terminal.

Register, upload Python files, and follow tasks from an interactive prompt or run commands directly from your shell.

$ taskflow login
$ taskflow upload-file hello.py --title hello
$ taskflow create-task --title hello --payload world
$ taskflow list-tasks
Install and use the CLI
TaskFlow interactive terminal showing quick start commands

Less pitch.
More proof.

Watch the project demonstration, from the terminal to the running system.

TaskFlow / Project demonstrationFastAPI · Redis · PostgreSQL · Kubernetes

A few useful details.

A little context before you put your first task in motion.

What kind of tasks can I run?

Python files with a handler(payload) function. Synchronous and asynchronous handlers are supported. Match the task title to the Python filename without its extension.

How does worker scaling work?

KEDA monitors Redis queue depth and adjusts the Kubernetes worker deployment from 2 to 20 pods. The scaling controls above illustrate the concept; they do not control a real cluster.

Do code changes require rebuilding workers?

No. TaskFlow supports dynamic Python uploads. Workers load the uploaded task code through shared storage without rebuilding the worker image.

What do I need to run it locally?

Docker with its daemon running, Minikube, and kubectl. Follow the repository README for prerequisites and local deployment instructions.

Where does task status live?

PostgreSQL stores task history and status. Redis handles the message queues, while workers execute the Python handlers.

Can I inspect and change the source?

Yes. TaskFlow is open source under the MIT license. Explore the repository, run it on your own infrastructure, and adapt the code to your needs.

Your next task
has somewhere to go.

Start with a function. See where it takes you.

Run TaskFlow locally