Skip to content

Commit 0a63bef

Browse files
authored
fix!: Remove unused "stats" field from RequestQueueMetadata (#1331)
- The field was not used for anything.
1 parent 938b23a commit 0a63bef

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

docs/upgrading/upgrading_to_v1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ destination you choose.
174174
- The `set_metadata` method has been removed.
175175
- `resource_directory` from `RequestQueueMetadata` removed – use `path_to_...` property.
176176
- `RequestQueueHead` model replaced with `RequestQueueHeadWithLocks`.
177+
- The `stats` field was removed from `RequestQueueMetadata` as it wasn't used for anything.
177178

178179
## New default HTTP client
179180

src/crawlee/storage_clients/_file_system/_request_queue_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ async def open(
246246
had_multiple_clients=False,
247247
handled_request_count=0,
248248
pending_request_count=0,
249-
stats={},
250249
total_request_count=0,
251250
)
252251
client = cls(

src/crawlee/storage_clients/_memory/_request_queue_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ async def open(
9393
had_multiple_clients=False,
9494
handled_request_count=0,
9595
pending_request_count=0,
96-
stats={},
9796
total_request_count=0,
9897
)
9998

src/crawlee/storage_clients/models.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ class RequestQueueMetadata(StorageMetadata):
7070
pending_request_count: Annotated[int, Field(alias='pendingRequestCount')]
7171
"""The number of requests that are still pending in the queue."""
7272

73-
stats: Annotated[dict, Field(alias='stats')]
74-
"""Statistics about the request queue, TODO?"""
75-
7673
total_request_count: Annotated[int, Field(alias='totalRequestCount')]
7774
"""The total number of requests that have been added to the queue."""
7875

0 commit comments

Comments
 (0)