mirror of
https://github.com/langgenius/dify.git
synced 2026-04-27 19:27:23 +08:00
fix discussion
This commit is contained in:
parent
014a6a11df
commit
bc2fbbbfba
@ -66,19 +66,16 @@ class PluginManagerService:
|
|||||||
def try_pre_uninstall_plugin(cls, body: PreUninstallPluginRequest):
|
def try_pre_uninstall_plugin(cls, body: PreUninstallPluginRequest):
|
||||||
try:
|
try:
|
||||||
# the invocation must be synchronous.
|
# the invocation must be synchronous.
|
||||||
EnterprisePluginManagerRequest.send_request( # pyright: ignore[reportUnknownMemberType]
|
EnterprisePluginManagerRequest.send_request(
|
||||||
"POST",
|
"POST",
|
||||||
"/pre-uninstall-plugin",
|
"/pre-uninstall-plugin",
|
||||||
json=body.model_dump(), # pyright: ignore[reportUnknownArgumentType, reportUnknownMemberType]
|
json=body.model_dump(),
|
||||||
raise_for_status=True,
|
raise_for_status=True,
|
||||||
timeout=dify_config.ENTERPRISE_REQUEST_TIMEOUT,
|
timeout=dify_config.ENTERPRISE_REQUEST_TIMEOUT,
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception:
|
||||||
logger.exception(
|
logger.exception(
|
||||||
"""
|
"failed to perform pre uninstall plugin hook. tenant_id: %s, plugin_unique_identifier: %s, ",
|
||||||
failed to perform pre uninstall plugin hook. tenant_id: %s, plugin_unique_identifier: %s,
|
|
||||||
this may cause plugin to be automatically garbage collected
|
|
||||||
""",
|
|
||||||
body.tenant_id,
|
body.tenant_id,
|
||||||
body.plugin_unique_identifier,
|
body.plugin_unique_identifier,
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user