An app that provides Django admin for ARQ
Project description
ARQ Django admin
Django admin dashboard for arq. ARQ Django admin is a simple app that allows you to configure your queues in django's settings.py and show them in your admin dashboard.
Installation
- Install
arq-django-admin
(or download from PyPI):
pip install arq-django-admin
- Add
arq_admin
toINSTALLED_APPS
insettings.py
:
INSTALLED_APPS = (
'arq_admin',
# other apps
)
Make sure you added it before django.contrib.admin
, otherwise you won't be able to see a link in the top right corner.
- Configure your queues in Django's
settings.py
:
from arq.connections import RedisSettings
from arq.constants import default_queue_name
ARQ_QUEUES = {
default_queue_name: RedisSettings(
host='localhost',
port=6379,
database=0,
),
'arq:another_queue_name': RedisSettings(),
}
- Include
arq_admin.urls
in yoururls.py
:
from django.urls import include, path
urlpatterns = [
# <...>
path('arq/', include('arq_admin.urls')),
]
- If you use custom job serializer, you need to add deserializer to
settings.py
:
ARQ_DESERIALIZER_BY_QUEUE = {
'arq:another_queue_name': custom_job_deserializer,
}
- You can change timeout for job aborting:
ARQ_JOB_ABORT_TIMEOUT = 10
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arq-django-admin-0.3.2.tar.gz
(11.3 kB
view details)
Built Distribution
File details
Details for the file arq-django-admin-0.3.2.tar.gz
.
File metadata
- Download URL: arq-django-admin-0.3.2.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b683675c70561ed8bbeef2a3b9b5489f42f9ff44bfc5e565de74d88869f18956 |
|
MD5 | cfb6d2c170e9379bb70f1e811bfc4c67 |
|
BLAKE2b-256 | a34a17289e3fb50aeae30aa31e94ab7bdb4f1aba2cc3e0fba76e3add6b5c227e |
File details
Details for the file arq_django_admin-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: arq_django_admin-0.3.2-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 465a4fa113e89203fdf75287fd82de6deadd0016fa510c20fafa0a224ca982bb |
|
MD5 | c9fcd3e72819fc9ef422d7a3d0ee2e75 |
|
BLAKE2b-256 | a1ee581f74fe263f5760b8f573d7a4c19ecb41a7e3d70ac5ad684ce85a6d019e |