update
This commit is contained in:
@@ -78,9 +78,9 @@ class Framework:
|
||||
if self.config['use_gevent']:
|
||||
self.socketio = SocketIO(self.app, cors_allowed_origins="*")
|
||||
else:
|
||||
if self.config['running_type'] == 'termux':
|
||||
self.socketio = SocketIO(self.app, cors_allowed_origins="*", async_mode='eventlet')
|
||||
else:
|
||||
#if self.config['running_type'] == 'termux':
|
||||
# self.socketio = SocketIO(self.app, cors_allowed_origins="*", async_mode='eventlet')
|
||||
#else:
|
||||
self.socketio = SocketIO(self.app, cors_allowed_origins="*", async_mode='threading')
|
||||
|
||||
CORS(self.app)
|
||||
@@ -161,9 +161,13 @@ class Framework:
|
||||
#F.logger.info(f"celery running_type: {options}")
|
||||
celery.steps['worker'].add(CustomArgs)
|
||||
except Exception as e:
|
||||
if self.config['use_celery']:
|
||||
self.logger.error('CELERY!!!')
|
||||
self.logger.error(f'Exception:{str(e)}')
|
||||
self.logger.error(traceback.format_exc())
|
||||
else:
|
||||
self.logger.info("use_celery = False")
|
||||
|
||||
def dummy_func():
|
||||
pass
|
||||
|
||||
|
||||
@@ -433,6 +433,8 @@ class PluginManager:
|
||||
if F.config['plugin_update'] != True:
|
||||
return
|
||||
plugins_path = os.path.join(F.config['path_data'], 'plugins')
|
||||
if os.path.exists(plugins_path) == False:
|
||||
return
|
||||
tmps = os.listdir(plugins_path)
|
||||
for t in tmps:
|
||||
plugin_path = os.path.join(plugins_path, t)
|
||||
|
||||
Reference in New Issue
Block a user