Commit bd7572f
fix: Use hashed request_id as cache key in shared RQ client reclaim_request (#795)
## Summary
- In `ApifyRequestQueueSharedClient.reclaim_request`, the cache key was
set to `request.unique_key` (raw URL string) instead of the hashed
`request_id` (via `unique_key_to_request_id`)
- Every other `_cache_request` call in the class uses the hashed
`request_id`, creating an inconsistency that causes orphaned cache
entries
- After reclaiming, future cache lookups by `request_id` would miss the
reclaimed request, potentially causing re-fetches or incorrect
processing
## Test plan
- [x] CI passes
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 252eb4e commit bd7572f
File tree
1 file changed
+2
-2
lines changed- src/apify/storage_clients/_apify
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | | - | |
| 272 | + | |
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| |||
0 commit comments