From 071066272da4441786a34585c880515f146d2af6 Mon Sep 17 00:00:00 2001 From: frikky Date: Tue, 23 Nov 2021 01:40:45 +0100 Subject: [PATCH] Added button for stopping dangling executions in environment --- docker-compose.yml | 4 +- frontend/src/views/Admin.jsx | 84 +++++++++++++++++++----------------- 2 files changed, 46 insertions(+), 42 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0ff34514..8a8ba025 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '3' services: frontend: - build: ./frontend + #build: ./frontend image: ghcr.io/frikky/shuffle-frontend:nightly container_name: shuffle-frontend hostname: shuffle-frontend @@ -64,7 +64,7 @@ services: - SHUFFLE_SWARM_NETWORK_NAME=shuffle-executions restart: unless-stopped opensearch: - image: opensearchproject/opensearch:1.0.0 + image: opensearchproject/opensearch:1.1.0 hostname: shuffle-opensearch container_name: shuffle-opensearch environment: diff --git a/frontend/src/views/Admin.jsx b/frontend/src/views/Admin.jsx index fc2c1429..a4a0de47 100644 --- a/frontend/src/views/Admin.jsx +++ b/frontend/src/views/Admin.jsx @@ -862,7 +862,7 @@ const Admin = (props) => { }; const abortEnvironmentWorkflows = (environment) => { - console.log("Aborting all workflows started >10 minutes ago, not finished"); + //console.log("Aborting all workflows started >10 minutes ago, not finished"); fetch(`${globalUrl}/api/v1/environments/${environment}/stop`, { method: "GET", @@ -871,8 +871,11 @@ const Admin = (props) => { .then((response) => { if (response.status !== 200) { console.log("Status not 200 for apps :O!"); + alert.error("Failed aborting dangling workflows") return; - } + } else { + alert.info("Aborted all dangling workflows") + } return response.json(); }) @@ -3736,7 +3739,7 @@ const Admin = (props) => { setShowArchived(!showArchived); }} />{" "} - Show archived + Show disabled { /> - + @@ -3824,8 +3827,8 @@ const Admin = (props) => { /> { {environment.default ? null : ( - {/**/} - {/**/} - - - @@ -3888,6 +3867,31 @@ const Admin = (props) => { : 0 } /> + +
+ + +
+
); })}