The error lies in the fact that the received task from the queue returns to
the queue back some time later, if you look at the logs there is an error
associated with the timeouts.
Here are the detailed logs and question, how do I increase the count of
heartbeats?
TRACE
2018-03-07 15:14:07,102 - WARNING - Connection to broker lost, trying to re-establish
connection...
Traceback (most recent call last):
File "/home/etl/.local/lib/python3.5/site-packages/kombu/mixins.py", line
199, in consume
conn.drain_events(timeout=safety_interval)
File "/home/etl/.local/lib/python3.5/site-packages/kombu/connection.py",
line 288, in drain_events
return self.transport.drain_events(self.connection, **kwargs)
File
"/home/etl/.local/lib/python3.5/site-packages/kombu/transport/pyamqp.py",
line 95, in drain_events
return connection.drain_events(**kwargs)
File "/home/etl/.local/lib/python3.5/site-packages/amqp/connection.py",
line 303, in drain_events
chanmap, None, timeout=timeout,
File "/home/etl/.local/lib/python3.5/site-packages/amqp/connection.py",
line 366, in _wait_multiple
channel, method_sig, args, content = read_timeout(timeout)
File "/home/etl/.local/lib/python3.5/site-packages/amqp/connection.py",
line 337, in read_timeout
return self.method_reader.read_method()
File "/home/etl/.local/lib/python3.5/site-packages/amqp/method_framing.py",
line 189, in read_method
raise m
File "/home/etl/.local/lib/python3.5/site-packages/amqp/method_framing.py",
line 107, in _next_method
frame_type, channel, payload = read_frame()
File "/home/etl/.local/lib/python3.5/site-packages/amqp/transport.py",
line 154, in read_frame
frame_header = read(7, True)
File "/home/etl/.local/lib/python3.5/site-packages/amqp/transport.py",
line 277, in _read
s = recv(n - len(rbuf))
File
"/home/etl/.local/lib/python3.5/site-packages/eventlet/greenio/base.py",
line 360, in recv
return self._recv_loop(self.fd.recv, b'', bufsize, flags)
File
"/home/etl/.local/lib/python3.5/site-packages/eventlet/greenio/base.py",
line 354, in _recv_loop
self._read_trampoline()
File
"/home/etl/.local/lib/python3.5/site-packages/eventlet/greenio/base.py",
line 325, in _read_trampoline
timeout_exc=socket_timeout('timed out'))
File
"/home/etl/.local/lib/python3.5/site-packages/eventlet/greenio/base.py",
line 207, in _trampoline
mark_as_closed=self._mark_as_closed)
File
"/home/etl/.local/lib/python3.5/site-packages/eventlet/hubs/__init__.py",
line 163, in trampoline
return hub.switch()
File "/home/etl/.local/lib/python3.5/site-packages/eventlet/hubs/hub.py",
line 295, in switch
return self.greenlet.switch()
socket.timeout: timed out
Thanks all!