Skip to content

Auto-retry logic

Compare
Choose a tag to compare
@mikeraynham mikeraynham released this 25 Sep 08:39
· 14 commits to master since this release
Add retry code to client and worker

If a Gearman server dies and another server is available, Gearman
clients and workers will automatically try connecting to the next server
in the list.  But a dying server can still cause the next request from a
client or worker to fail.  To help prevent work from being lost, this
revision adds code that will retry connections up to 10 times, using an
exponential back-off algorithm to determine delays between retries.