【发布时间】:2013-09-25 16:44:25
【问题描述】:
我正在使用python-firebase 来记录我的堆栈中的点击次数和其他事件数据。它工作正常,但时不时地抛出这个堆栈跟踪:
'ConnectionError(MaxRetryError("HTTPSConnectionPool(host=\'somebase.firebaseio.com\',
port=443): Max retries exceeded with url: /campaigns/79/clicked.json
(Caused by <class \'socket.error\'>: [Errno 104] Connection reset by peer)",),)'
这通常发生在负载高峰期,但我知道我没有超过开发者计划中可用的 50 个最大连接数:
更多数据:
点击计数更新发生在使用 Celery 和 gevent 的任务队列中。会不会是Gevent引起的?
更新:
另一个错误:
Task core.campaign.tasks.process_entry_click with id
932df1ff-62a4-4d24-b491-b9b4921a2372 raised exception:
"SSLError(SSLError(SSLError('The read operation timed out',),),)"
【问题讨论】:
标签: python python-2.7 celery firebase gevent