This commit is contained in:
flaskfarm
2022-10-14 15:57:11 +09:00
parent 64b9ff2157
commit ee73bbbe4b
3 changed files with 5 additions and 5 deletions

View File

@@ -1 +1 @@
VERSION="4.0.3" VERSION="4.0.4"

View File

@@ -37,7 +37,7 @@ class ModuleSetting(PluginModuleBase):
'notify.yaml': '', #직접 사용하지 않으나 저장 편의상. 'notify.yaml': '', #직접 사용하지 않으나 저장 편의상.
'command_text': '', 'command_text': '',
'celery_start_by_web': 'False', #웹 실행시 celery 실행 'celery_start_by_web': 'False', #웹 실행시 celery 실행
'celery_start_command': "celery -A flaskfarm.main.celery worker --workdir={F.config['path_working']} --loglevel=info --pool=gevent --concurrency=2 --config_filepath={F.config['config_filepath']} --running_type=native", 'celery_start_command': "celery -A flaskfarm.main.celery worker --loglevel=info --pool=gevent --concurrency=2 --config_filepath={F.config['config_filepath']} --running_type=native",
} }
@@ -205,8 +205,8 @@ class ModuleSetting(PluginModuleBase):
command = command.split(' ') command = command.split(' ')
if mode == 'foreground': if mode == 'foreground':
cmd = [ cmd = [
['msg', f'명령 : {command}'], ['msg', f'명령 : {' '.join(command)}'],
command.split(' '), command,
] ]
ToolModalCommand.start("Celery 실행", cmd) ToolModalCommand.start("Celery 실행", cmd)
elif mode == 'background': elif mode == 'background':

View File

@@ -16,7 +16,7 @@
{{ macros.setting_input_textarea('celery_start_command', 'celery 실행 명령', desc=['', {{ macros.setting_input_textarea('celery_start_command', 'celery 실행 명령', desc=['',
'예: celery -A flaskfarm.main.celery worker --workdir={F.config["path_working"]} --loglevel=info --pool=gevent --concurrency=2 --config_filepath={F.config["config_filepath"]} --running_type=native', '예: celery -A flaskfarm.main.celery worker --loglevel=info --pool=gevent --concurrency=2 --config_filepath={F.config["config_filepath"]} --running_type=native',
'', '',
'패키지로 실행시 : -A flaskfarm.main.celery', '패키지로 실행시 : -A flaskfarm.main.celery',
'Git 소스로 실행시 : -A main.celery', '', 'Git 소스로 실행시 : -A main.celery', '',