mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-07-30 01:58:51 -04:00
close and reopen the amqp consumer connection only every 2.5 hours instead of every 15 minutes, because now that we have to wait for all browsers to close when we do the reconnection, it slows us down a lot
This commit is contained in:
parent
025db91dea
commit
17ef9d9f28
1 changed files with 2 additions and 2 deletions
|
@ -130,8 +130,8 @@ class AmqpBrowserController:
|
|||
# consumer looks normal but doesn't consume any messages. Not clear if
|
||||
# it's hanging in drain_events() or not. As a temporary measure for
|
||||
# mitigation (if it works) or debugging (if it doesn't work), close and
|
||||
# reopen the connection every 15 minutes
|
||||
RECONNECT_AFTER_SECONDS = 15 * 60
|
||||
# reopen the connection every 2.5 hours
|
||||
RECONNECT_AFTER_SECONDS = 150 * 60
|
||||
|
||||
url_queue = kombu.Queue(self.queue_name, exchange=self._exchange)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue