Skip to main content

celery debounce without cache

Project description

Celery Debounce

Celery debounce without using cache.

How to create debounce task?

from celery_debounce.celery_debounce import DebouncedTask

@app.task(bind=True, base=DebouncedTask)
def testing_task(self, some_id):
    """
    how to call task?
    testing_task.debounce(some_id=1234)
    """
    print("from testing_task", some_id)

How to call the task?

testing_task.debounce(some_id=1234)

With countdown (By default it's 60 seconds):

testing_task.debounce(some_id=1234, countdown=10)

======= History

0.1.0 (2022-10-21)

  • First release on PyPI.

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

celery_debounce-0.2.1.tar.gz (9.8 kB view hashes)

Uploaded Source

Built Distribution

celery_debounce-0.2.1-py2.py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 2 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