Skip to main content
Flask + taskiq . Self-hosted . Open source

Flask taskiq Dashboard

Run taskiq inside a Flask app and you have working background jobs. Run taskiq with z4j and you also have a dashboard, persistent history, the task controls this adapter can execute safely, scheduler integration, RBAC with invitations, and a tamper-evident audit log. z4j is one container or one Python process; the agent is one pip extra in your existing Flask venv.

taskiq is the newest async-native task queue and ships with first-class FastAPI ergonomics. Flask + taskiq is well-suited to teams who want the modern async Python stack from end to end. z4j-taskiq instruments the broker and worker without touching your task code.

install

Install z4j alongside Flask + taskiq

1. Install the brain

bash
pip install z4j && z4j serve

First boot prints a setup URL to stderr. Open it, create the first admin, and mint a token + HMAC secret for this agent.

2. Add the agent to your Flask venv

bash
pip install z4j-flask[taskiq]

3. Wire it into Flask

python
from flask import Flask
from z4j_flask import Z4J

app = Flask(__name__)
app.config.from_prefixed_env("Z4J_")
z4j = Z4J(app)

What you get

  • Persistent taskiq task history in Postgres or SQLite
  • Adapter-advertised controls: submit_task
  • Scheduler integration via taskiq scheduler; available controls depend on that scheduler adapter
  • RBAC with invitations and password reset
  • HMAC-chained tamper-evident audit log
  • Notifications: email, Slack, Telegram, webhook
License

z4j-flask and z4j-taskiq are Apache 2.0. Importing them into your Flask app does not affect your application's licensing. z4j is AGPL-3.0-or-later, isolated in its own process.

taskiq actions exposed

What the dashboard can actually do

Native actions

  • submit_task

Event capture

Z4JTaskiqMiddleware: pre_send / pre_execute / post_execute / on_error.

Reconciliation

result_backend.is_result_ready() + get_result(). Works across every backend taskiq ships.

other Flask stacks

Flask with a different engine

taskiq on other frameworks

Same engine, different framework

Start using Flask taskiq Dashboard

Self-hosted, open source, no SaaS, no telemetry. z4j runs anywhere Python or Docker runs.