From bf9b88cb634e324018a94dd7caccaecfda8c1ebe Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 17 Mar 2026 15:45:18 +0800 Subject: [PATCH] perf: update start service --- apps/common/management/commands/services/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/common/management/commands/services/command.py b/apps/common/management/commands/services/command.py index 7dcc786b6..d5b31d37f 100644 --- a/apps/common/management/commands/services/command.py +++ b/apps/common/management/commands/services/command.py @@ -45,14 +45,14 @@ class Services(TextChoices): @classmethod def web_services(cls): - if SERVER_SIZE == 'small': + if SERVER_SIZE == 'small' or os.environ.get('FLOWER_DIABLED', '0') == '1': return [cls.gunicorn] else: return [cls.gunicorn, cls.flower] @classmethod def celery_services(cls): - if SERVER_SIZE == 'small': + if SERVER_SIZE == 'small' or os.environ.get('CELERY_COMBINE', '0') == '1': return [cls.celery_default] else: return [cls.celery_ansible, cls.celery_default]