Skip to content

Commit 0109136

Browse files
vdusekclaude
andcommitted
fix: Use hashed request_id as cache key in shared RQ client reclaim_request
The reclaim_request method was using request.unique_key directly as the cache key, while all other methods use unique_key_to_request_id() to compute a hashed request_id. This inconsistency caused orphaned cache entries since cached requests were stored under a different key than what other methods would look up. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 252eb4e commit 0109136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/apify/storage_clients/_apify/_request_queue_shared_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@ async def reclaim_request(
267267
self.metadata.pending_request_count += 1
268268

269269
# Update the cache
270-
cache_key = request.unique_key
270+
request_id = unique_key_to_request_id(request.unique_key)
271271
self._cache_request(
272-
cache_key,
272+
request_id,
273273
processed_request,
274274
hydrated_request=request,
275275
)

0 commit comments

Comments
 (0)