We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26a3067 commit ddc60ddCopy full SHA for ddc60dd
2 files changed
apps/common/management/commands/services/services/local_model.py
@@ -36,8 +36,7 @@ def cmd(self):
36
'--max-requests-jitter', '2048',
37
'--access-logformat', log_format,
38
'--access-logfile', '/dev/null',
39
- '--error-logfile', '-',
40
- '-e', 'ENABLE_LOCAL_MODEL=1'
+ '--error-logfile', '-'
41
]
42
if DEBUG:
43
cmd.append('--reload')
apps/maxkb/wsgi.py
@@ -30,10 +30,8 @@ def post_scheduler_handler():
30
31
job.run()
32
33
-# 仅在非local_model模式下启动后处理函数,dev celery scheduler 不需要
34
-if os.environ.get("ENABLE_LOCAL_MODEL") != '1':
35
- # 启动后处理函数
- post_handler()
+# 启动后处理函数
+post_handler()
# 仅在scheduler中启动定时任务,dev local_model celery 不需要
if os.environ.get('ENABLE_SCHEDULER') == '1':
0 commit comments