mirror of
https://github.com/fastapi-practices/fastapi_best_architecture.git
synced 2025-08-14 19:04:00 +08:00
14 lines
265 B
Python
14 lines
265 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
from backend.common.socketio.server import sio
|
|
|
|
|
|
async def task_notification(msg: str):
|
|
"""
|
|
任务通知
|
|
|
|
:param msg: 通知信息
|
|
:return:
|
|
"""
|
|
await sio.emit('task_notification', {'msg': msg})
|