djangopostgresqlcelerydjango-celerydjango-celery-beat

Django Celery Beat and Tasks Results


Is it possible for django-celery-beat not to save tasks that are performed in a short time interval? By default, all results are saved to the Task Results table.

I cannot find this information on celeryproject webpage.

Alternatively, what should be the settings for postgres auto vacuum so that indexes don't take up that much disk space?

I want a simple solution. Overwriting django celery logic is not an option.


Solution

  • I found a solution. It's simpler than I thought. If you want not to save the results to the database, just add in the decorator:

    @shared_task (ignore_result = True)