-
Notifications
You must be signed in to change notification settings - Fork 136
refactor: update AsyncQueueManager to use a single RabbitMQ priority queue and enhance connection handling; add default queue name and priority mapping #256
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
Closed
vaishcodescape
wants to merge
8
commits into
AOSSIE-Org:main
from
vaishcodescape:aditya/single-queue-refactor
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
74914b2
feat:UI enhancement features added using material UI
vaishcodescape 11f1e5a
chore: update poetry.lock with new greenlet musllinux wheels and enha…
vaishcodescape c589df7
fix: clean up imports in Navbar and improve button hover effect in Bu…
vaishcodescape 364a351
feat: integrate MUI icons and enhance footer, navbar, hero, and waitl…
vaishcodescape f372653
refactor: remove unused index.ts file, enhance Footer and Navbar comp…
vaishcodescape 371a1e3
refactor: remove hover effect from ArrowUpIcon in Footer and prevent …
vaishcodescape af351a4
fix: add href attribute to MuiLink in Footer component for improved n…
vaishcodescape 513d470
refactor: update AsyncQueueManager to use a single RabbitMQ priority …
vaishcodescape File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🧩 Analysis chain
🏁 Script executed:
Repository: AOSSIE-Org/Devr.AI
Length of output: 111
🏁 Script executed:
# Read the queue_manager.py file to understand the full context cat -n backend/app/core/orchestration/queue_manager.pyRepository: AOSSIE-Org/Devr.AI
Length of output: 7410
🏁 Script executed:
Repository: AOSSIE-Org/Devr.AI
Length of output: 2515
🏁 Script executed:
Repository: AOSSIE-Org/Devr.AI
Length of output: 2013
🏁 Script executed:
Repository: AOSSIE-Org/Devr.AI
Length of output: 1806
🏁 Script executed:
Repository: AOSSIE-Org/Devr.AI
Length of output: 2138
🏁 Script executed:
Repository: AOSSIE-Org/Devr.AI
Length of output: 79
🏁 Script executed:
Repository: AOSSIE-Org/Devr.AI
Length of output: 44
🏁 Script executed:
Repository: AOSSIE-Org/Devr.AI
Length of output: 181
🏁 Script executed:
# Check the main.py to see the startup sequence cat -n ./backend/main.pyRepository: AOSSIE-Org/Devr.AI
Length of output: 6106
Guard
enqueue()against disconnected/uninitialized queue manager.If
enqueue()is called beforeconnect()/start()completes or afterstop()is invoked,self.channelis eitherNoneor closed, causing runtime failures. Add a defensive guard:async def enqueue( self, message: Dict[str, Any], priority: QueuePriority = QueuePriority.MEDIUM, delay: float = 0, ) -> None: """Add a message to the single priority queue.""" + if not self.channel: + raise RuntimeError("Queue manager not connected. Call start() before enqueue().") if delay > 0: await asyncio.sleep(delay)Note: The
stop()method should also resetself.channel = Noneto ensure the guard catches post-shutdown attempts.🤖 Prompt for AI Agents