Request queue v2 - locking #1365
Labels
feature
Issues that represent new features or improvements to existing features.
product roadmap
Issues contributing to product roadmap.
sprint goal
Issues contributing to sprint goal.
t-tooling
Issues with this label are in the ownership of the tooling team.
tech roadmap
Issues contributing to tech roadmap.
Milestone
Request queue v2 context
There is a specification for the request queue v2 project in internal docs, as it is not updated and not available for all outside of Apify. I sum up the main changes about the rq v2 project here:
Changes in crawlee
listAndLockHead
insteadlistHead
method and lock the requests to process. The client will hold these requests locally in the process. This is the only client that will be able to lock and fetch these requests.{ handledAt: new Date() }
attribute, it remove the lock under hood.{ lockExpiresAt: Date.now() + lockSecs * 1000 }
or usingprolongRequestLock()
method.deleteRequestLock()
method. If not the lock expires anyway.Change in memory storage
The locking mechanism can be based on the request orderNo attribute.
There are the following sets of orderNo values:
Based on that, the local request queue will handle
The text was updated successfully, but these errors were encountered: