I am using recent versions of Celery and Flower and Redis, but I cannot understand what is happening. I get all the results to work and the data is coming back correctly, but when I view the Celery Tasks with Flower, I see all the tasks and the results.
My task has the following decorator:
@celery.task(ignore_result=True, bind=True)
def perform_long_task(self, urls):
I've tried calling get()
, forget()
, etc but when I look at Flower the results are always there.
I've also tried:
CELERY_TASK_RESULT_EXPIRES=10
I launch the task with:
celery worker -l info -B -A test.api.tasks
I've tried:
class CeleryConfig:
CELERYBEAT_SCHEDULE = {
'check-every-minute': {
'task': 'celery.backend_cleanup',
'schedule': crontab(hour="*/1"),
}
}
I cannot get the taks to not show in Flower, so I am thinking that the tasks must still be there (taking up memory).
Is this true? Any thought to get them to disappear?
Thanks!