mirror of
https://github.com/fastapi-practices/fastapi_best_architecture.git
synced 2025-08-15 03:52:54 +08:00
14 lines
252 B
Python
14 lines
252 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})
|