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

Fix Redis Consumption Bug When entrypoint.sh's WS>1 #735

Closed
wants to merge 2 commits into from

Conversation

cklogic
Copy link
Contributor

@cklogic cklogic commented May 11, 2024

What problem does this PR solve?

Description:

#734 I encountered a bug related to Redis consumption under the condition where entrypoint.sh has WS>1.

Cause:
The issue arises from utilizing the same consumer_name across multiple instances, leading to anomalies. For instance, my testing occasionally revealed that tasks successfully dispatched to Redis could fail to be consumed.

This behavior also precipitated additional complications.

Resolution:
To address this, we've implemented a fix by assigning unique consumer_names to the queue_consumer of each thread, effectively mitigating the identified issues and ensuring reliable task consumption from Redis.

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

@cklogic cklogic closed this May 12, 2024
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.

None yet

1 participant