Skip to content

fix: add sleep to avoid high CPU usage when Redis is unreachable in D…#1058

Open
zhongyuanjia wants to merge 1 commit intohibiken:masterfrom
zhongyuanjia:master
Open

fix: add sleep to avoid high CPU usage when Redis is unreachable in D…#1058
zhongyuanjia wants to merge 1 commit intohibiken:masterfrom
zhongyuanjia:master

Conversation

@zhongyuanjia
Copy link

@zhongyuanjia zhongyuanjia commented Jun 23, 2025

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.

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.

1 participant