mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-05 09:21:02 +00:00
perf: Add task description (#14033)
Co-authored-by: ZhaoJiSen <97007455+ZhaoJiSen@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user