Skip to content

Commit ad8aea8

Browse files
authored
Fix wrong value in time.sleep between successive requests in the wait_for_finish method (#72)
It slept 250 seconds instead of 250 milliseconds.
1 parent d49bc44 commit ad8aea8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Changelog
88

99
- improved retrying broken API server connections
1010

11+
### Fixed
12+
13+
- fixed timeout value in actively waiting for a run to finish
14+
1115
[0.4.0](../../releases/tag/v0.4.0) - 2021-09-07
1216
-----------------------------------------------
1317

src/apify_client/clients/base/actor_job_base_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _wait_for_finish(self, wait_secs: Optional[int] = None) -> Optional[Dict]:
5555
return None
5656

5757
# It might take some time for database replicas to get up-to-date so sleep a bit before retrying
58-
time.sleep(250)
58+
time.sleep(0.25)
5959

6060
return job
6161

0 commit comments

Comments
 (0)