Skip to content

fix(bot): restore dashboard ticket bridge after queue merge - #13

Open
OfficialAbhinavSingh wants to merge 5 commits into
mainfrom
fix/yuvi-queue-ci-20260928
Open

OfficialAbhinavSingh wants to merge 5 commits into
mainfrom
fix/yuvi-queue-ci-20260928

Conversation

@OfficialAbhinavSingh

Copy link
Copy Markdown
Member

After the async queue merge, /tickets/create-thread is registered on a legacy request model, so dashboard ticket creation receives HTTP 422. The same merge initializes Firestore during module import, which crashes CI without credentials, and queue workers can stay bound to a previous event loop after restart.

This restores the ticket handler and its compatibility aliases, keeps Firestore initialization lazy, and drains/cancels queue workers before resetting their queues for a new lifecycle. A regression test covers queue reuse across event loops.

Validation: uv run --locked python -m unittest discover -s tests -v (37 passed), uv run --locked python -m compileall -q cogs utils server.py, and git diff --check.

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