Fixed execution cleanup properly, including execution queue and abort issues
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user