-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Celery workers not sending heartbeat #4980
Comments
Releated to #4817. Heartbeat is not being called on some connections in a connection pool. |
Is there any way to fix this now? From #4817 I can see that the only workaround is to set heartbeat to 0 and get it over with. But what about heartbeat monitoring in production applications? |
You don't need a heartbeat when running TCP connection with a keepalive interval set reasonably low. But anyway, this is a bug and it needs a proper fix. |
@olii what do you recommend as 'reasonably low'? I have the same sort of issue and try to apply the 'broker_heartbeat=0' fix... |
@sposs it is completely up to you. You can experiment with any value you like for your use case. Note that the default Linux TCP timeout is 2 hours. http://tldp.org/HOWTO/TCP-Keepalive-HOWTO/usingkeepalive.html |
Facing the same error, using prefork. python3 With RabbitMQ running inside a docker container. |
Facing the same dilemma as @kleysonr python3 RabbitMQ running inside a docker container. |
I've had this issue with all pool types with Downgrading to celery==4.1.1 seems to solve the issue for me |
I have been seeing repeated emailed errors from Django reporting "ConnectionResetError: [Errno 104] Connection reset by peer" in the call to get task status i.e: File "/opt/layerindex/layerindex/views.py" in task_log_view 1572. if result.ready(): Digging around this seems to be some sort of known bug: celery/celery#4817 celery/celery#4980 The workaround suggested is to disable the broker heartbeat, so try that in order to avoid the errors. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Facing similar issue |
celery==4.4.0 is the latest release |
I have been seeing repeated emailed errors from Django reporting "ConnectionResetError: [Errno 104] Connection reset by peer" in the call to get task status i.e: File "/opt/layerindex/layerindex/views.py" in task_log_view 1572. if result.ready(): Digging around this seems to be some sort of known bug: celery/celery#4817 celery/celery#4980 The workaround suggested is to disable the broker heartbeat, so try that in order to avoid the errors. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
can any of you check this celery/py-amqp#374? |
Similar to #3649, but I'm not using celery beat. Just with the celery worker instance.
Celery 4.2.1 I'm still facing this issue.
RabbitMQ log
Celery -A proj inspect active
After 5 min,
RabbitMQ
celery -A proj inspect active
In celery log:
I'm running celery inside docker container and I'm worried about running celery with no downtime as we had
Connection reset by peer
error in our tests often. Please throw some light on this.The text was updated successfully, but these errors were encountered: