This pull request makes polling at future objects more efficient, in that a short-running job's future.result() should return faster than before.
Before this PR, the default polling interval was a constant of 15 seconds. After this PR, the default polling interval starts at 1 second, increases geometrically for subsequent polls, and is capped at a maximum of 15 seconds. If the user provides a number to the polling_interval argument, the polling interval will be a constant of this number (so no change from before this PR).
[x] (For Civis employees only) Reference to a relevant ticket in the pull request title
[x] Changelog entry added to CHANGELOG.md at the repo's root level
[x] Description of change in the pull request description
[x] If applicable, unit tests have been added and/or updated
This pull request makes polling at future objects more efficient, in that a short-running job's
future.result()
should return faster than before.Before this PR, the default polling interval was a constant of 15 seconds. After this PR, the default polling interval starts at 1 second, increases geometrically for subsequent polls, and is capped at a maximum of 15 seconds. If the user provides a number to the
polling_interval
argument, the polling interval will be a constant of this number (so no change from before this PR).CHANGELOG.md
at the repo's root level