mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-04 17:01:09 +00:00
perf: 优化异步认识显示名称
This commit is contained in:
@@ -16,7 +16,6 @@ from .models import SystemMsgSubscription, UserMsgSubscription
|
||||
|
||||
__all__ = ('SystemMessage', 'UserMessage', 'system_msgs', 'Message')
|
||||
|
||||
|
||||
system_msgs = []
|
||||
user_msgs = []
|
||||
|
||||
@@ -44,7 +43,7 @@ class MessageType(type):
|
||||
return clz
|
||||
|
||||
|
||||
@shared_task
|
||||
@shared_task(verbose_name=_('Publish the station message'))
|
||||
def publish_task(msg):
|
||||
msg.publish()
|
||||
|
||||
|
Reference in New Issue
Block a user