An interactive dashboard for monitoring and managing Taskiq tasks.
Actively maintained. Last release 3 days ago, commits in 8 of the last 26 weeks. A safe choice.
pip install taskiq-dashboardREADME as published on PyPI with version 0.5.3.
taskiq-dashboard
Broker-agnostic admin dashboard for Taskiq.
Live demo of UI: https://taskiq-dashboard.danfimov.com/
Installation
To install taskiq-dashboard package, run the following command:
pip install taskiq-dashboard
To pull the Docker image with taskiq-dashboard application , run the following command:
docker pull ghcr.io/danfimov/taskiq-dashboard:latest
Usage
Run with code
-
Import and connect middleware to your Taskiq broker:
from taskiq_dashboard import DashboardMiddleware broker = ( RedisStreamBroker( url=redis_url, queue_name="my_lovely_queue", ) .with_result_backend(result_backend) .with_middlewares( DashboardMiddleware( url="http://localhost:8000", # the url to your taskiq-dashboard instance api_token="supersecret", # secret for accessing the dashboard API broker_name="my_worker", # it will be worker name in the dashboard ) ) ) -
Run taskiq-dashboard with the following code:
from taskiq_dashboard import TaskiqDashboard from your_project.broker import broker # your Taskiq broker instance def run_admin_panel() -> None: app = TaskiqDashboard( api_token='supersecret', # the same secret as in middleware storage_type='postgresql', # or 'sqlite' database_dsn="postgresql://taskiq-dashboard:look_in_vault@postgres:5432/taskiq-dashboard", broker=broker, # pass your broker instance here to enable additional features (optional) host='0.0.0.0', port=8000, ) app.run() if __name__ == '__main__': run_admin_panel()