This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Description
Tasks that make remote requests can hang indefinitely if a socket connection is silently dropped. Since APScheduler will not run two instances of the same task at once then the situation never resolves itself without a restart of the scheduler. Simple solutions is to set:
socket._GLOBAL_DEFAULT_TIMEOUT = 60
to cause all socket connections to eventually timeout. This is likely the cause of Celery hanging on the simplecrypto/pool_list as well.
Manifested by Worker Count going to 0 on SimpleVert.com when a connection to a geo stratum was dropped.