From 992ae08931b7c604d667fea833e7d11ce366cf12 Mon Sep 17 00:00:00 2001 From: Charles Cowart Date: Thu, 4 Apr 2019 10:25:29 -0700 Subject: [PATCH] Modified comment to reflect random element --- qiita_client/qiita_client.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qiita_client/qiita_client.py b/qiita_client/qiita_client.py index 9c9ebb6..ee526b0 100644 --- a/qiita_client/qiita_client.py +++ b/qiita_client/qiita_client.py @@ -67,9 +67,11 @@ def _heartbeat(qclient, url): Notes ----- - If the Qiita server is not reachable, this function will wait 5 minutes - before retrying another heartbeat. This is useful for updating the Qiita - server without stopping long running jobs. + If the Qiita server is not reachable, this function will wait a random + interval of minutes before retrying another heartbeat. This attempts to + distribute the load of multiple callers during times of heavier load. + Intervals are useful for updating the Qiita server without stopping long + running jobs. """ retries = MAX_RETRIES while not JOB_COMPLETED and retries > 0: