Skip to content

ykus4/aioq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aioq

Async job queue for Python with Redis, PostgreSQL, and MySQL backends, priority queues, job dependencies, dead letter queues, and a built-in real-time dashboard.

Documentation · PyPI

Install

pip install aioq                # Redis only
pip install "aioq[postgres]"    # + PostgreSQL
pip install "aioq[mysql]"       # + MySQL
pip install "aioq[all]"         # everything

Quick start

# tasks.py
from aioq import Aarq
from aioq.backends import RedisBroker

app = Aarq(broker=RedisBroker(url="redis://localhost:6379"))

@app.task(queue="default", retries=3)
async def my_task(ctx, value: int):
    ...
aioq worker tasks:app       # run a worker
aioq dashboard tasks:app    # dashboard at :8080

See the docs for full usage.

License

MIT

About

Async job queue for Python — Redis/PostgreSQL/MySQL backends, priority queues, job dependencies, dead letter queues, Prometheus metrics, built-in dashboard

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors