fix(vps): extend import timeout to 1h and stop ongoing CDI tasks on timeout
Build and publish Docker image / build-and-publish (push) Successful in 2m31s
Build and publish Docker image / build-and-publish (push) Successful in 2m31s
This commit is contained in:
1 parent
6732ee9d47
commit
4c2f5f2c01
3 files changed
+99
-5
No files matched your search
@@ -104,6 +104,17 @@ def delete_server(server_id: str, user_id: str) -> bool:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
try:
|
||||
custom_objects_api.delete_namespaced_custom_object(
|
||||
group="cdi.kubevirt.io",
|
||||
version="v1beta1",
|
||||
namespace=namespace,
|
||||
plural="datavolumes",
|
||||
name=f"{server_id}-rootdisk"
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
if delete_server_record(server_id):
|
||||
# Removed refund logic
|
||||
pass
|
||||
|
||||
Reference in new issue
Block a user