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.io 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 three variables:
task_id: Current task id
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
Built Distribution
File details
Details for the file tasktiger-admin-0.3.1.tar.gz
.
File metadata
- Download URL: tasktiger-admin-0.3.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.37.0 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cff3e403f4d8e0b9697ef9f8fb29c1c1923363002ff194040658c851093ff037 |
|
MD5 | 64cc59694aaeacad905a433c7db390a4 |
|
BLAKE2b-256 | ad2cbd77fb5717e490e61b4669ce29c515fd9eb3571c5e3bcaec3314d44acf2e |
File details
Details for the file tasktiger_admin-0.3.1-py2-none-any.whl
.
File metadata
- Download URL: tasktiger_admin-0.3.1-py2-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.37.0 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d67ad83f605e4deb21b66eb1f229f151e104eb31e0c44e174d0d916157ff42e |
|
MD5 | 68def7b2ee38bc9d563e81d0d878ce29 |
|
BLAKE2b-256 | cf9704c03ca7a3d4305c8b85e1d5b08673457a05137dd2f0baa2ba876bc3e9ee |