Added shutdown.

This commit is contained in:
rony5394
2026-03-05 14:25:04 +01:00
parent 44f533bd43
commit 2dda7dbb38
3 changed files with 34 additions and 4 deletions

View File

@@ -72,6 +72,7 @@ func prepare(w http.ResponseWriter, r *http.Request){
Source: bodyDecoded.VolumeId,
Target: "/volume",
Type: "volume",
ReadOnly: true,
},
},
StopGracePeriod: &stopGracePeriod,
@@ -90,6 +91,7 @@ func prepare(w http.ResponseWriter, r *http.Request){
}
time.Sleep(7*time.Second);
fmt.Fprint(w, bodyDecoded.ServiceId);
}