Skip to content

Modified comment to reflect random element #46

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

Merged
merged 1 commit into from
Apr 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions qiita_client/qiita_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down