mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 11:26:52 +08:00
fix(storage): ensure storage_runner initialization within app context (#9627)
This commit is contained in:
@@ -15,6 +15,7 @@ class Storage:
|
|||||||
|
|
||||||
def init_app(self, app: Flask):
|
def init_app(self, app: Flask):
|
||||||
storage_factory = self.get_storage_factory(dify_config.STORAGE_TYPE)
|
storage_factory = self.get_storage_factory(dify_config.STORAGE_TYPE)
|
||||||
|
with app.app_context():
|
||||||
self.storage_runner = storage_factory()
|
self.storage_runner = storage_factory()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user