Skip to content
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

Make work queue push based #11

Merged
merged 1 commit into from
Jan 14, 2025
Merged

Make work queue push based #11

merged 1 commit into from
Jan 14, 2025

Conversation

JoshVanL
Copy link

The work item queue was pull based, meaning that if the backed had no work to do, the processor would both spin wheels doing no work as well as processing the next work item slower as there was a backoff delay to when there was no work.

Updates the queue to be pull based, calling a function which hangs until there is either work to do or the context is cancelled.

The work item queue was pull based, meaning that if the backed had no
work to do, the processor would both spin wheels doing no work as well
as processing the next work item slower as there was a backoff delay to
when there was no work.

Updates the queue to be pull based, calling a function which hangs until
there is either work to do or the context is cancelled.

Signed-off-by: joshvanl <[email protected]>
@yaron2 yaron2 merged commit 47efd41 into dapr:main Jan 14, 2025
2 checks passed
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.

3 participants