Skip to content

Commit c18b451

Browse files
committed
chore: add rate_limit_errors property for ApifyStorageClient
1 parent c665b9d commit c18b451

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

poetry.lock

Lines changed: 5 additions & 5 deletions
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.1b1"
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+
@property
71+
def rate_limit_errors(self) -> dict[int, int]:
72+
return self._apify_client.stats.rate_limit_errors

0 commit comments

Comments
 (0)