How to increase visibility_timeout

684 views Asked by At

We're using Django 1.4.22 and celery 3.1.25 with REDIS. The default value for visibility_timeout is one hour and it is too small for our jobs.

How can we increase visibility_timeout to 6 hours?

My attempt was to set in Dkjango's setting.py this:

BROKER_TRANSPORT_OPTIONS = {'visibility_timeout': 3600 * 6}

I do not remember where I got this recommendation from. If you know any other solution, please advise. So far, I couldn't find anything that works.

-- EDIT --

When running:

manage.py celery inspect conf

It shows:

...
"BROKER_TRANSPORT": null,
"BROKER_TRANSPORT_OPTIONS": {},
...
1

There are 1 answers

0
Alexander Klimenko On

Correct celery option names start with CELERY_ prefix

In your case CELERY_BROKER_TRANSPORT_OPTIONS