From e7834d32c268bd29856cfd009190ff912de344d9 Mon Sep 17 00:00:00 2001 From: samaradel Date: Thu, 28 Nov 2024 16:17:16 +0200 Subject: [PATCH] Rename worker after successful deployment --- .../playground/src/components/manage_k8s_worker_dialog.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/playground/src/components/manage_k8s_worker_dialog.vue b/packages/playground/src/components/manage_k8s_worker_dialog.vue index 639e9cbe26..6c1a6d2e5f 100644 --- a/packages/playground/src/components/manage_k8s_worker_dialog.vue +++ b/packages/playground/src/components/manage_k8s_worker_dialog.vue @@ -82,6 +82,9 @@ async function deploy(layout: any) { .catch(error => { const e = typeof error === "string" ? error : error.message; layout.setStatus("failed", e); + }) + .finally(() => { + worker.value = createWorker(); }); }