perf: Add task description (#14033)

Co-authored-by: ZhaoJiSen <97007455+ZhaoJiSen@users.noreply.github.com>
This commit is contained in:
fit2bot
2024-09-09 18:54:33 +08:00
committed by GitHub
parent bd548b3fe2
commit 1417abecfb
29 changed files with 1129 additions and 148 deletions

View File

@@ -43,7 +43,15 @@ class MessageType(type):
return clz
@shared_task(verbose_name=_('Publish the station message'))
@shared_task(
verbose_name=_('Publish the station message'),
description=_(
"""
This task needs to be executed for sending internal messages for system alerts,
work orders, and other notifications
"""
)
)
def publish_task(receive_user_ids, backends_msg_mapper):
Message.send_msg(receive_user_ids, backends_msg_mapper)