Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upLong ETA tasks executed multiple times on Redis broker despite setting visibility_timeout #2599
Comments
vrastogi
changed the title from
Long ETA tasks executed multiple times onRedis broker despite setting visibility_timeout
to
Long ETA tasks executed multiple times on Redis broker despite setting visibility_timeout
Apr 29, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
fatihsucu
Apr 29, 2015
Contributor
Yes this bug still exist. I couldn't override that visibility timeout settings too. I use rabbitmq broker instead of redis broker for solve this problem. If you don't have wait for update i suggest that.
|
Yes this bug still exist. I couldn't override that visibility timeout settings too. I use rabbitmq broker instead of redis broker for solve this problem. If you don't have wait for update i suggest that. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vrastogi
commented
Apr 29, 2015
|
Thanks for another confirmation. I will consider your work-around. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ask
May 6, 2015
Member
Just confirmed here, and the visibility timeout is indeed set by BROKER_TRANSPORT_OPTIONS = {'visibility_timeout': 30}.
Are you sure you do not have some other consumer running using a different visibility timeout?
E.g. a flower instance running with a default visibility timeout.
Any message consumer using the kombu redis transport will happily restore visible messages
for you, so you have to make sure all of them are using the same configuration.
|
Just confirmed here, and the visibility timeout is indeed set by Are you sure you do not have some other consumer running using a different visibility timeout? Any message consumer using the kombu redis transport will happily restore visible messages |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vrastogi
May 14, 2015
Sorry for the late reply. I have not checked anything else, but yes I am running a flower instance. That seems to explain this problem. Is there a way to set a visibility_timeout of flower?
vrastogi
commented
May 14, 2015
|
Sorry for the late reply. I have not checked anything else, but yes I am running a flower instance. That seems to explain this problem. Is there a way to set a visibility_timeout of flower? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Just point it to an app: |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vrastogi
May 14, 2015
That is what I have been doing but seems I never restarted flower after changing the visibility_timeout. Closing this issue now.
vrastogi
commented
May 14, 2015
|
That is what I have been doing but seems I never restarted flower after changing the |
vrastogi commentedApr 29, 2015
I have the same issue as that in http://stackoverflow.com/q/12683546/567555
Like other commenters to that question, I can confirm that this bug is present. I am using celery 3.1.17, kombu 3.0.24, Redis server 2.8.4 with both the Redis server and the workers running on the same machine. My tasks have a countdown of 6 hours, so I set the visibility_timeout to 43200 (12 hours). Printing the
visibility_timeoutjust before it is used inrestore_visibleofkombu/transport/redis.pyindicates that it is set correctly. But I can still see the same tasks executed multiple times.Here is my celery configuration, if it matters.
Will be happy to provide further information.