Fixed execution cleanup properly, including execution queue and abort issues

This commit is contained in:
frikky
2021-12-17 02:08:26 +01:00
parent 8dc950bbe0
commit ef6d38d3aa
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ func handleGetWorkflowqueueConfirm(resp http.ResponseWriter, request *http.Reque
err = shuffle.DeleteKeys(ctx, parsedId, ids)
if err != nil {
log.Printf("[ERROR] Failed deleting %d execution keys for org %s", len(ids), id)
log.Printf("[ERROR] Failed deleting %d execution keys for org %s: %s", len(ids), id, err)
} else {
//log.Printf("[INFO] Deleted %d keys from org %s", len(ids), parsedId)
}
+2 -2
View File
@@ -864,7 +864,7 @@ const Admin = (props) => {
const abortEnvironmentWorkflows = (environment) => {
//console.log("Aborting all workflows started >10 minutes ago, not finished");
fetch(`${globalUrl}/api/v1/environments/${environment}/stop`, {
fetch(`${globalUrl}/api/v1/environments/${environment.id}/stop?deleteall=true`, {
method: "GET",
credentials: "include",
})
@@ -3809,7 +3809,7 @@ const Admin = (props) => {
? environment.running_ip === undefined ||
environment.running_ip === null ||
environment.running_ip.length === 0
? "Not started"
? "Not running"
: environment.running_ip
: "N/A"
}