Skip to content

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Jan 2, 2026

Auto-generated migration based on schema.prisma changes.

Generated files:

  • deploy/migrations/${VERSION}_schema_update/migration.sql
  • deploy/migrations/${VERSION}_schema_update/README.md

rbren and others added 22 commits October 21, 2024 16:25
The asyncio exception handler was being set on the wrong event loop at
module import time. When uvicorn creates a new event loop, the handler
was not set on it, causing asyncio exceptions (like 'Task exception was
never retrieved') to be logged as plain text with each line as a
separate log entry.

Changes:
- Add _setup_asyncio_json_exception_handler() function that sets the
  exception handler on the running event loop
- Call this function in proxy_startup_event after uvicorn creates the
  event loop
- Include full traceback in exc_info by extracting it from the
  exception object
- Handle non-exception errors by logging them as JSON too

This ensures that asyncio exceptions are logged as single JSON objects
with the stacktrace field, making them easier to parse in Datadog.

Co-authored-by: openhands <[email protected]>
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.

5 participants