Your workers, your machines,
your rules.
The open-source distributed task queue for GPU and CPU workloads. Push tasks via API, Runqy distributes them to your workers, anywhere.
pip install runqy-pythonYour compute belongs to you. So does your code.
Runqy is a task broker. It receives jobs, distributes them to your workers, and tracks execution. The workers run on your machines, with resources you control.
Got an RTX 4090 under your desk? Run GPU inference in production. A beefy server for CPU-heavy scraping? Add it to the pool. Need more capacity? Let Runqy rent GPUs for peak loads and release them when it's quiet. Runqy orchestrates. You stay in control.
Built for real workloads
Everything you need to distribute tasks across heterogeneous infrastructure.
GPU autoscaling
Rent GPUs on RunPod or Vast.ai when the queue fills up, release them when it's idle. Busy workers are drained before their machine is destroyed.
How autoscaling works โGit-based deployment
Workers clone your repo, install dependencies and start your code on their own. No SSH, no Docker builds, no CI pipelines.
How deployment works โRemote control
Drain a worker, roll out a new commit, upgrade the worker binary or reload a config from the CLI or the dashboard. Models stay loaded.
Remote commands โPython SDK
Two decorators turn any Python script into a worker. Load your model once, then handle tasks. No DSL, no boilerplate.
See the SDK โREST API
Submit jobs from any language. JSON in, JSON out. Batch endpoint for high-volume submissions.
Priority sub-queues
Serve paid users before free ones with the same code. Weighted priorities by default, strict order when you need it.
How priorities work โTimeouts & retries
Per-queue execution and pending timeouts, retries and retention. Quick CPU tasks and hour-long GPU jobs side by side.
Per-queue limits โDashboard & alerts
Queues, tasks and workers in a web dashboard. Email alerts when a queue has no workers, backs up or gets slow.
Dashboard and alerts โSelf-hosted
Your data never leaves your infrastructure. Encrypted vaults for secrets. No vendor lock-in, no SaaS dependency.
How it works
Write your task
Pure Python. No DSL. Just your code with two decorators.
Push to GitHub
Workers pull your code automatically. They clone, install deps, and signal ready. Zero manual deployment.
Enqueue jobs
Via CLI, SDK, or API. Runqy distributes them to available workers and tracks each task until it's done.
Worker (Python)
from runqy_python import task, load, run
@load
def setup():
# Runs once at startup
return {"model": load_my_model()}
@task
def process(payload, ctx):
result = ctx["model"].predict(
payload["data"]
)
return {"prediction": result}
run() # Enters the task loopSubmit jobs (cURL)
# Single job
curl -X POST http://localhost:3000/queue/add \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"queue": "inference.default",
"data": {"input": "hello"}
}'
# Many jobs in one request
curl -X POST http://localhost:3000/queue/add-batch \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{"queue": "inference.default", "jobs": [...]}'Your infra, your way
Mix environments as you see fit. Add workers when you need them. Remove them when it's quiet.
Zero-touch deployment
Push code to GitHub. Workers deploy themselves, and pick up new commits on a single command. No SSH. No Docker builds. No CI pipelines to maintain.
Built for these workloads
From quick CPU tasks to hour-long GPU inference, Runqy handles it.
๐จ Image Generation
Stable Diffusion, SDXL, Flux. Enqueue a prompt, get an image. Workers process in parallel on your GPUs.
GPU ยท Long-running ยท Parallel๐ค LLM Inference
vLLM, Transformers, llama.cpp. The model loads once and stays in memory between tasks, on your hardware.
GPU ยท Model stays loaded ยท Priorities๐ฌ Video Generation
Long-running jobs on your own hardware or rented GPUs. Timeouts sized per queue, from seconds to hours.
GPU ยท Hours-long ยท Autoscaling๐ท๏ธ Web Scraping
Parallel crawling across workers. Scale your scrapers horizontally without managing infrastructure.
CPU ยท High-volume ยท Parallel๐ Data Pipelines
ETL jobs, data transformations, report generation. Offload heavy processing to dedicated workers.
CPU/GPU ยท Batch ยท ETL๐ฆ Batch Processing
Thousands of documents to process? Enqueue them all via the batch endpoint. Workers split the load.
CPU ยท Batch API ยท Scale-outHow Runqy compares
Different tools for different needs. Here's where Runqy fits.
| Feature | Runqy | Celery | BullMQ | Temporal |
|---|---|---|---|---|
| Language | Go (broker) + Python SDK | Python | Node.js | Go + multi-lang SDKs |
| Auto worker deployment | โ Git-based | โ | โ | โ |
| Built-in GPU autoscaling | โ RunPod, Vast.ai | โ | โ | โ |
| Heterogeneous infra | โ Mix providers | Manual | Manual | Manual |
| Workflow orchestration | Task queue | Canvas/chains | Flows | โ Full workflows |
| Setup | Binary + Redis + SQLite/Postgres | Broker + result backend | Redis | Server cluster + database |
| License | MIT | BSD | MIT | MIT |
Integrations
Submit jobs from anywhere. Workers run Python.
Python SDK
pip install runqy-python
Write workers with decorators. Submit jobs programmatically.
REST API
POST /queue/add ยท POST /queue/add-batch
JSON-based. Use from any language, any platform.
Redis
Battle-tested message broker
Lightweight, fast, and familiar. Your queue lives in Redis.
Get started in 5 minutes
From zero to distributed task processing.
Start Redis, the server and a worker
git clone https://github.com/Publikey/runqy.git
cd runqy
docker compose -f docker-compose.quickstart.yml up -dSubmit a job to the example queue
curl -X POST http://localhost:3000/queue/add \
-H "Authorization: Bearer dev-api-key" \
-H "Content-Type: application/json" \
-d '{
"queue": "quickstart-oneshot",
"data": {"operation": "uppercase", "data": "hello"}
}'Write your own task
# main.py
from runqy_python import task, run
@task
def hello(payload, ctx):
return {"message": f"Hello {payload['name']}!"}
run()Why open source?
No vendor lock-in
Your task queue shouldn't depend on a SaaS surviving. Self-host forever.
Nothing hidden
Read the code, run it on your own infrastructure, see exactly what it does.
Community-driven
File issues, submit PRs, shape the roadmap. Built in the open.
No per-task pricing
Run as many jobs as you want. Your hardware, your costs.
MIT Licensed
Use it however you want. Commercial, personal, modified, no restrictions.
Star on GitHub โญReady to distribute your workloads?
Install the SDK. Write your worker. Run it on your machine. Enqueue your first job.
Your workers, your machines, your rules.