Skip to main content

A Django app to add dynamic celery redbeat periodic tasks

Project description

django-redbeat is an app based on celery-redbeat with model based celery periodic tasks.

Quick start

  1. Add “django_redbeat” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'django_redbeat',
    ]
  2. Run python manage.py migrate to create the PeriodicTaskeEntry model.

  3. Start the development server and visit http://127.0.0.1:8000/admin/ to create a periodic task (you’ll need the Admin app enabled).

  4. Visit http://127.0.0.1:8000/admin/django_redbeat/periodictasksentry/ to add periodic task.

  5. Sample code to use:

    from django_redbeat import PeriodicTaskEntry
    
    task = PeriodicTasksEntry.objects.create(
       name="The verbose name of the task",
       task="yourapp.tasks.task_name",
       args=[arg1, arg2,],
       schedule=10# the schedule in seconds
    )

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-redbeat-0.3.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_redbeat-0.3-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file django-redbeat-0.3.tar.gz.

File metadata

  • Download URL: django-redbeat-0.3.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.8

File hashes

Hashes for django-redbeat-0.3.tar.gz
Algorithm Hash digest
SHA256 11d735c0db42dc548b6d97a9ebad8d54c81a8cc3d104ab3271b04c8ad248878d
MD5 ec0ed405161d06a020fe32621e99b7cc
BLAKE2b-256 be7f200ae0318128e6e493275b5eb461c43ff755bb387ca25e56e4013df56531

See more details on using hashes here.

File details

Details for the file django_redbeat-0.3-py3-none-any.whl.

File metadata

  • Download URL: django_redbeat-0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.8

File hashes

Hashes for django_redbeat-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bceafeb2eaaa2763c546f13904288991b5bc5fdbd70a77b20b472bba2fb98c6d
MD5 6308236dc1a8e0cf523545a452536458
BLAKE2b-256 c4b96b089873e2337b50983e21e46fde5b33590256f47c9c27cee1b8a187a140

See more details on using hashes here.

Supported by

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