A django app to monitor celery tasks with progress
Project description
Django Celery Progress
A django app to monitor celery tasks with progress
Demo
Quick start
Add "django_celery_progress" to your INSTALLED_APPS:
INSTALLED_APPS = [
'django_celery_progress',
]
Set CELERY_BROKER_URL and CELERY_RESULT_BACKEND
CELERY_BROKER_URL = 'redis://localhost:6379/0'
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
Progress monitor:
import time
from celery import shared_task
from django_celery_progress.progress import set_progress
@shared_task(bind=True, name='my_task')
def my_task(self):
for i in range(100):
time.sleep(1)
set_progress(self, i + 1, 100)
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
Close
Hashes for django-celery-progress-1.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c11b82d944c185ddb8a2b6f4fb37c6f4eb9c2c18c4f7930ebb3cb5ff6305645a |
|
MD5 | a52cc39a13948e5f4688c903c5cdd1a7 |
|
BLAKE2b-256 | 409756991318bb69f1d91b58768eabbe75be9e050e6895e8f6afb29c1ac5a8f1 |
Close
Hashes for django_celery_progress-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45feb9a8417b0a0f38478c9d83bfd1f305f61ddb7ac0f109d51d097b3b625e6f |
|
MD5 | 53f8a6cbe3d19ff96e32b96fba90e6da |
|
BLAKE2b-256 | c93c8af092ef325fbba0f0f9d1f4548d8a1bec836b09a8cd1094d666504be3c4 |