Admin for tasktiger, a Python task queue
Project description
tasktiger-admin is an admin interface for TaskTiger using flask-admin. It comes with an overview page that shows the amount of tasks in each queue for each state (queued, active, scheduled, error). It lets you inspect queues and individual tasks, as well as delete and retry tasks that errored out.
(Interested in working on projects like this? Close is looking for great engineers to join our team)
Quick start
% tasktiger-admin
This will listen on the default port (5000) and connect to the default Redis instance. Additional settings are available (see --help switch for details).
For a more advanced integration, tasktiger-admin can be integrated in a Flask app with an existing flask-admin by using the provided view in tasktiger_admin.views.TaskTigerView.
Integration Links
The TaskTigerView class takes an optional integration_config parameter that can be used to render integration links on the admin Task Detail page. These can be used to easily navigate to external resources like logging infrastructure or a Wiki. integration_config should be a list of tuples that specify the integration name and URL template.
The URL template supports four variables:
task_id: Current task id
queue: Task queue name
execution_start: Execution start time minus a 10 second buffer
execution_failed: Execution failed time plus a 10 second buffer
Example integration config that points to a logging website.
integration_config = [('Logs', 'https://logs.example.com/search/?'
'task_id={{ task_id }}&'
'start_time={{ execution_start }}&'
'end_time={{ execution_failed }}')]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file tasktiger-admin-0.4.1.tar.gz
.
File metadata
- Download URL: tasktiger-admin-0.4.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 421631698747c1499212c48ab8e539cf2589112a33f59b666c85cf1f15120d97 |
|
MD5 | b612a1db5259c498323817c8bb62149a |
|
BLAKE2b-256 | acc251e640f7cd16f26a2388f58c4e09bf57ea635422e6950ed2ff697e5a3553 |