Files
Wu Clan fc5a0f9dfa Update the celery configuration and tasks (#458)
* Update the celery configuration and tasks

* fix message notifications
2024-11-15 14:29:02 +08:00

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})