* perf: 重命名 signal handlers

* fix: 修复 ticket processor 问题

* perf: 修改 ticket 处理人api

* fix: 修复创建系统账号bug

* fix: 升级celery_beat==2.2.1和flower==1.0.0;修改celery进程启动参数先后顺序

* perf: 修改 authentication token

* fix: 修复上传权限bug

* fix: 登录页面增加i18n切换;

* fix: 系统角色删除限制

* perf: 修改一下 permissions tree

* perf: 生成 i18n

* perf: 修改一点点

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: feng626 <1304903146@qq.com>
Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
This commit is contained in:
fit2bot
2022-03-02 20:48:43 +08:00
committed by GitHub
parent 04e46e4b1c
commit dafc416783
69 changed files with 929 additions and 519 deletions

View File

@@ -1,6 +1,6 @@
from django.core.management.base import BaseCommand
from assets.signals_handler.node_assets_mapping import expire_node_assets_mapping_for_memory
from assets.signal_handlers.node_assets_mapping import expire_node_assets_mapping_for_memory
from orgs.caches import OrgResourceStatisticsCache
from orgs.models import Organization

View File

@@ -52,7 +52,7 @@ class Services(TextChoices):
@classmethod
def export_services_values(cls):
return [cls.all.value, cls.web.value, cls.task.value]
return [cls.all.value, cls.web.value, cls.task.value] + [s.value for s in cls.all_services()]
@classmethod
def get_service_objects(cls, service_names, **kwargs):

View File

@@ -23,9 +23,10 @@ class CeleryBaseService(BaseService):
server_hostname = '%h'
cmd = [
'celery', 'worker',
'-P', 'threads',
'celery',
'-A', 'ops',
'worker',
'-P', 'threads',
'-l', 'INFO',
'-c', str(self.num),
'-Q', self.queue,

View File

@@ -16,8 +16,9 @@ class FlowerService(BaseService):
if os.getuid() == 0:
os.environ.setdefault('C_FORCE_ROOT', '1')
cmd = [
'celery', 'flower',
'celery',
'-A', 'ops',
'flower',
'-l', 'INFO',
'--url_prefix=/core/flower',
'--auto_refresh=False',