update
This commit is contained in:
@@ -36,8 +36,8 @@ class ModuleSetting(PluginModuleBase):
|
||||
'notify_advaned_use' : 'False',
|
||||
'notify.yaml': '', #직접 사용하지 않으나 저장 편의상.
|
||||
'command_text': '',
|
||||
'celery_start_by_web': 'False', #웹 실행시 celery 실행
|
||||
'celery_start_command': "celery -A flaskfarm.main.celery worker --loglevel=info --pool=gevent --concurrency=2 --config_filepath={F.config['config_filepath']} --running_type=native",
|
||||
'celery_start_by_web': 'True' if F.config['running_type'] == 'docker_alpine' else 'False', #웹 실행시 celery 실행
|
||||
'celery_start_command': f"celery -A flaskfarm.main.celery worker --loglevel=info --pool=gevent --concurrency=2 --config_filepath={F.config['config_filepath']} --running_type={F.config['running_type']}",
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ var running_type = "{{arg['running_type']}}";
|
||||
|
||||
$(document).ready(function(){
|
||||
console.log(running_type);
|
||||
if (running_type == 'docker') {
|
||||
if (running_type.startsWith('docker')) {
|
||||
$('#celery_start_by_web').bootstrapToggle('off');
|
||||
$('#celery_start_by_web').prop('disabled', true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user