Added descriptive name to event dispatch asyncio task.
CI / Formatting (push) Successful in 6s
CI / Linting (push) Successful in 5s
CI / Tests (Python 3.12) (push) Successful in 13s
CI / Tests (Python 3.13) (push) Successful in 12s
CI / Tests (Python 3.14) (push) Successful in 10s
CI / Type Checking (push) Successful in 9s
CI / Spelling (push) Successful in 5s
CI / Formatting (push) Successful in 6s
CI / Linting (push) Successful in 5s
CI / Tests (Python 3.12) (push) Successful in 13s
CI / Tests (Python 3.13) (push) Successful in 12s
CI / Tests (Python 3.14) (push) Successful in 10s
CI / Type Checking (push) Successful in 9s
CI / Spelling (push) Successful in 5s
This commit is contained in:
@@ -166,7 +166,8 @@ class HttpServer:
|
|||||||
# we can respond immediately. This avoids the possibility
|
# we can respond immediately. This avoids the possibility
|
||||||
# of slow handlers blocking Owncast's webhook delivery.
|
# of slow handlers blocking Owncast's webhook delivery.
|
||||||
task: asyncio.Task[None] = asyncio.create_task(
|
task: asyncio.Task[None] = asyncio.create_task(
|
||||||
self._event_dispatch(parsed_type, event)
|
self._event_dispatch(parsed_type, event),
|
||||||
|
name=f"Event dispatch - {parsed_type.value}",
|
||||||
)
|
)
|
||||||
self._pending_tasks.add(task)
|
self._pending_tasks.add(task)
|
||||||
task.add_done_callback(self._pending_tasks.discard)
|
task.add_done_callback(self._pending_tasks.discard)
|
||||||
|
|||||||
Reference in New Issue
Block a user