Separated Scaling from Preparing

This commit is contained in:
rony5394
2026-02-23 17:23:54 +01:00
parent 9751a602cc
commit 0175847e89
5 changed files with 119 additions and 12 deletions

View File

@@ -57,10 +57,7 @@ func cleanup(w http.ResponseWriter, r *http.Request){
if err != nil {
panic("Failed to remove helper service."+ err.Error());
}
time.Sleep(15*time.Second);
//TODO: Add proper wait system
time.Sleep(10*time.Second);
scaleUp(bodyDecoded.ServiceId);
fmt.Fprint(w, bodyDecoded.ServiceId);
}