mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[PR #1058] fix: add sleep to avoid high CPU usage when Redis is unreachable in D… #3017
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#3017
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hibiken/asynq/pull/1058
Author: @zhongyuanjia
Created: 6/23/2025
Status: 🔄 Open
Base:
master← Head:master📝 Commits (1)
bfe15dbfix: add sleep to avoid high CPU usage when Redis is unreachable in Dequeue📊 Changes
1 file changed (+7 additions, -0 deletions)
View changed files
📝
processor.go(+7 -0)📄 Description
When the project fails to connect to Redis, the Dequeue method is called in a tight loop without any delay. This causes the container's CPU usage to spike, as the processor keeps retrying immediately after each failure.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.