Skip to main content

A django app to monitor celery tasks with progress

Project description

Django Celery Progress

A django app to monitor celery tasks with progress

Demo

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

django-celery-progress-1.0.5.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

django_celery_progress-1.0.5-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page