Skip to content

feat(node): prolong individual request queue locks - #74

Open
atirna wants to merge 3 commits into
apify:mainfrom
atirna:fix/prolong-request-lock
Open

feat(node): prolong individual request queue locks#74
atirna wants to merge 3 commits into
apify:mainfrom
atirna:fix/prolong-request-lock

Conversation

@atirna

@atirna atirna commented Aug 27, 2026

Copy link
Copy Markdown

Why

Crawlee can extend a request handler timeout, but the native filesystem queue currently has no way to extend the matching on-disk orderNo lock. A long handler can therefore outlive its reservation and be fetched by another shared consumer.

This adds per-request prolongation at the native lock owner. The client records the exact lock value it wrote, extends that expiry, and returns false if the lock expired or another client has since reacquired the request. The Node binding exposes the method for the companion change in apify/crawlee#4041.

Verification

  • cargo test (91 passed)
  • npm test (60 passed)
  • npm run lint
  • npm run fmt:check

Related to apify/crawlee#3961.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants