mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-23 21:38:09 +00:00
* Update the ruff rules and format the code * Update the per-file-ignores * Update the ci * Update rules * Fix codes * Fix pagination * Update rules
12 lines
226 B
Python
12 lines
226 B
Python
from backend.common.socketio.server import sio
|
|
|
|
|
|
async def task_notification(msg: str) -> None:
|
|
"""
|
|
任务通知
|
|
|
|
:param msg: 通知信息
|
|
:return:
|
|
"""
|
|
await sio.emit('task_notification', {'msg': msg})
|