Standalone project that mirrors the TaskIQ broker/scheduler configuration from the main on.ai codebase while keeping the rest of the stack minimal. Use it to reproduce TaskIQ scheduler or broker bugs without booting the full application.
export ENV=dev # required so settings load the matching envs/dev.env file
uv sync # or pip install -r requirements if you prefer
uv run uvicorn test_taskiq_app.main:app --reload
Workers start with:
uv run taskiq worker test_taskiq_app.tasks:taskiq_broker
uv run taskiq scheduler test_taskiq_app.tasks:taskiq_scheduler
Adjust .env
values under envs/
to point at a Redis instance that matches your test scenario.
Build and run the full stack (Redis, app, worker, scheduler) with:
docker compose up --build
The compose file uses uv
inside the container, mirrors the debug flags from docker-compose/workers.yml
, and exposes the API on port 8000
.