You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I am trying to use Kombu for long running tasks (the longest one can take as long as 1hr) but am facing intermittent issues. I see OSError: Server unexpectedly closed connection occuring ocassionlly in the client code. The server logs show that the connection was closed due to missed heartbeats. I am not sure why that happens becauase I am offloading the long running task to a background thread and keeping the main thread free for kombu to communicate heartbeats with rabbitmq. Any thoughts on how to fix the issue and make kombu play well with long running tasks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I am trying to use Kombu for long running tasks (the longest one can take as long as 1hr) but am facing intermittent issues. I see
OSError: Server unexpectedly closed connection
occuring ocassionlly in the client code. The server logs show that the connection was closed due to missed heartbeats. I am not sure why that happens becauase I am offloading the long running task to a background thread and keeping the main thread free for kombu to communicate heartbeats with rabbitmq. Any thoughts on how to fix the issue and make kombu play well with long running tasks.Here is my consumer code,
Beta Was this translation helpful? Give feedback.
All reactions