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.1.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for arq_django_admin-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a5a087a06fb54e3e659fd5120d7b12611e809b127058e785f699f7425e7f946 |
|
MD5 | 6c06980292d42ec7a4b1ec41101d8a74 |
|
BLAKE2b-256 | c5d438edc478dcacb183cf4057f0baa638a4a354559cc7e1e6b649348b0fdf11 |