Skip to content

Commit 89c230a

Browse files
authored
feat: add rate_limit_errors property for ApifyStorageClient (#387)
### Description - add `rate_limit_errors` property for `ApifyStorageClient`. ### Issues - Closes: #318
1 parent f027543 commit 89c230a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ keywords = [
4343

4444
[tool.poetry.dependencies]
4545
python = "^3.9"
46-
apify-client = ">=1.8.1"
46+
apify-client = ">=1.9.1"
4747
apify-shared = ">=1.2.1"
4848
crawlee = "~0.5.1"
4949
cryptography = ">=42.0.0"

src/apify/apify_storage_client/_apify_storage_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,7 @@ def request_queues(self) -> RequestQueueCollectionClient:
6666
@override
6767
async def purge_on_start(self) -> None:
6868
pass
69+
70+
@override
71+
def get_rate_limit_errors(self) -> dict[int, int]: # type: ignore[misc]
72+
return self._apify_client.stats.rate_limit_errors

0 commit comments

Comments
 (0)