-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Peek further ahead of queue dynamically #1336
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
bcef425
to
60d74a5
Compare
local partitionKey = KEYS[1] | ||
local keyGlobalPartitionPtr = KEYS[2] | ||
local keyShardPartitionPtr = KEYS[3] | ||
local partitionConcurrencyKey = KEYS[4] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I do anything with the partition concurrency when extending?
end | ||
|
||
-- update the lease | ||
-- NOTE: should `last` also be updated??? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should last
be updated as well?
considering this is extending the lease, I don't think it does, but would be good to verify.
60d74a5
to
cf933cc
Compare
Description
Make function queue peek more dynamic, so it guarantees it can at least process X amount of items.
This is useful, especially when concurrency hits and the executor ends up spinning over and over the same queue items. With this change, the queue processor should be able to look further ahead even if there are concurrency limited items backing up the function queue.
Type of change (choose one)
Checklist
Check our Pull Request Guidelines