feat: support delete all install tasks

This commit is contained in:
Yeuoly
2024-11-25 17:11:41 +08:00
parent 965fabd578
commit ba3659a792
3 changed files with 35 additions and 0 deletions

View File

@ -126,6 +126,16 @@ class PluginInstallationManager(BasePluginManager):
bool,
)
def delete_all_plugin_installation_task_items(self, tenant_id: str) -> bool:
"""
Delete all plugin installation task items.
"""
return self._request_with_plugin_daemon_response(
"POST",
f"plugin/{tenant_id}/management/install/tasks/delete_all",
bool,
)
def delete_plugin_installation_task_item(self, tenant_id: str, task_id: str, identifier: str) -> bool:
"""
Delete a plugin installation task item.