{
queryitem.name.toLowerCase() == "url" ||
queryitem.name.toLowerCase() == "body" ||
queryitem.name.toLowerCase() == "self" ||
+ queryitem.name.toLowerCase() == "query" ||
queryitem.name.toLowerCase() == "ssl_verify" ||
queryitem.name.toLowerCase() == "queries" ||
queryitem.name.toLowerCase() == "headers" ||
diff --git a/frontend/src/views/Contact.jsx b/frontend/src/views/Contact.jsx
deleted file mode 100644
index 54932023..00000000
--- a/frontend/src/views/Contact.jsx
+++ /dev/null
@@ -1,365 +0,0 @@
-import React, { useState } from "react";
-import { BrowserView, MobileView } from "react-device-detect";
-
-import Paper from "@material-ui/core/Paper";
-import Button from "@material-ui/core/Button";
-
-import TextField from "@material-ui/core/TextField";
-
-import { useTheme } from "@material-ui/core/styles";
-
-const bodyDivStyle = {
- margin: "auto",
- textAlign: "center",
- width: "900px",
-};
-
-// Should be different if logged in :|
-const Contact = (props) => {
- const { globalUrl, isLoaded } = props;
-
- const theme = useTheme();
-
- const boxStyle = {
- flex: "1",
- marginLeft: "10px",
- marginRight: "10px",
- paddingLeft: "30px",
- paddingRight: "30px",
- paddingBottom: "30px",
- paddingTop: "30px",
- backgroundColor: theme.palette.surfaceColor,
- display: "flex",
- flexDirection: "column",
- };
-
- const bodyTextStyle = {
- color: "#ffffff",
- };
-
- const [firstname, setFirstname] = useState("");
- const [lastname, setLastname] = useState("");
- const [title, setTitle] = useState("");
- const [companyname, setCompanyname] = useState("");
- const [email, setEmail] = useState("");
- const [phone, setPhone] = useState("");
- const [message, setMessage] = useState("");
-
- const [formMessage, setFormMessage] = useState("");
-
- const submitContact = () => {
- const data = {
- firstname: firstname,
- lastname: lastname,
- title: title,
- companyname: companyname,
- email: email,
- phone: phone,
- message: message,
- };
- console.log(data);
-
- fetch(globalUrl + "/api/v1/contact", {
- method: "POST",
- headers: {
- "Content-Type": "application/json",
- },
- body: JSON.stringify(data),
- })
- .then((response) => response.json())
- .then((response) => {
- if (response.success === true) {
- setFormMessage(response.message);
- } else {
- setFormMessage(
- "Something went wrong. Please contact frikky@shuffler.io."
- );
- }
- console.log(response);
- })
- .catch((error) => {
- console.log(error);
- });
- };
-
- // Random names for type & autoComplete. Didn't research :^)
- const landingpageDataBrowser = (
-
-
-
Contact us
- Lets talk!
-
-
-
- Contact Details
-
- setFirstname(e.target.value)}
- />
- setLastname(e.target.value)}
- />
-
-
- setTitle(e.target.value)}
- />
- setCompanyname(e.target.value)}
- />
-
-
- setEmail(e.target.value)}
- />
- setPhone(e.target.value)}
- />
-
-
-
Message
-
-
- setMessage(e.target.value)}
- />
-
-
- {formMessage}
-
-
-
- );
-
- const landingpageDataMobile = (
-
-
-
Contact us
- Lets talk!
-
-
-
- Contact Details
-
- setFirstname(e.target.value)}
- />
-
-
- setEmail(e.target.value)}
- />
-
-
-
Message
-
-
- setMessage(e.target.value)}
- />
-
-
- {formMessage}
-
-
-
- );
-
- const loadedCheck = isLoaded ? (
-
-
- {landingpageDataBrowser}
-
-
{landingpageDataMobile}
-
- ) : (
-
- );
-
- return
{loadedCheck}
;
-};
-export default Contact;
diff --git a/frontend/src/views/Docs.jsx b/frontend/src/views/Docs.jsx
index d6c98b9e..91d5ba3f 100644
--- a/frontend/src/views/Docs.jsx
+++ b/frontend/src/views/Docs.jsx
@@ -6,6 +6,9 @@ import { BrowserView, MobileView } from "react-device-detect";
import { useParams, useNavigate, Link } from "react-router-dom";
import {
+ Grid,
+ TextField,
+ IconButton,
Tooltip,
Divider,
Button,
@@ -15,7 +18,11 @@ import {
Paper,
List,
} from "@material-ui/core";
-import { Link as LinkIcon, Edit as EditIcon } from "@material-ui/icons";
+
+import {
+ Link as LinkIcon,
+ Edit as EditIcon,
+} from "@material-ui/icons";
const Body = {
maxWidth: 1000,
@@ -50,12 +57,13 @@ const Docs = (defaultprops) => {
var props = JSON.parse(JSON.stringify(defaultprops))
props.match = {}
props.match.params = params
+ console.log("Props: ", props.match.params)
useEffect(() => {
- if (params["key"] === undefined) {
- navigate("/docs/about")
- return
- }
+ //if (params["key"] === undefined) {
+ // navigate("/docs/about")
+ // return
+ //}
}, [])
//console.log("PARAMS: ", params)
@@ -229,8 +237,12 @@ const Docs = (defaultprops) => {
// navigate("/docs/about")
// return null
//}
+ //
+ if (props.match.params.key === undefined) {
- fetchDocs(props.match.params.key)
+ } else {
+ fetchDocs(props.match.params.key)
+ }
}
}
}
@@ -404,7 +416,6 @@ const Docs = (defaultprops) => {
rel="noopener noreferrer"
target="_blank"
href={selectedMeta.link}
- target="_blank"
style={{ textDecoration: "none", color: "#f85a3e" }}
>
);
diff --git a/functions/onprem/orborus/build.sh b/functions/onprem/orborus/build.sh
index 17303549..49b0d14f 100644
--- a/functions/onprem/orborus/build.sh
+++ b/functions/onprem/orborus/build.sh
@@ -1,5 +1,5 @@
NAME=shuffle-orborus
-VERSION=0.9.67
+VERSION=0.9.69
echo "Running docker build with $NAME:$VERSION"
#docker rmi frikky/shuffle:$NAME --force
diff --git a/functions/onprem/orborus/orborus.go b/functions/onprem/orborus/orborus.go
index d72df574..ba6a7700 100644
--- a/functions/onprem/orborus/orborus.go
+++ b/functions/onprem/orborus/orborus.go
@@ -89,7 +89,7 @@ func init() {
dockercli, err = dockerclient.NewEnvClient()
if err != nil {
- panic(fmt.Sprintf("Unable to create docker client: %s", err))
+ log.Printf("Unable to create docker client: %s", err)
}
getThisContainerId()
@@ -203,7 +203,7 @@ func deployServiceWorkers(image string) {
if swarmConfig == "run" || swarmConfig == "swarm" {
ctx := context.Background()
// Looks for and cleans up all existing items in swarm we can't re-use (Shuffle only)
- cleanupExistingNodes(ctx)
+
// frikky@debian:~/git/shuffle/functions/onprem/worker$ docker service create --replicas 5 --name shuffle-workers --env SHUFFLE_SWARM_CONFIG=run --publish published=33333,target=33333 ghcr.io/frikky/shuffle-worker:nightly
networkName := "shuffle_swarm_executions"
if len(swarmNetworkName) > 0 {
@@ -495,7 +495,9 @@ func deployWorker(image string, identifier string, env []string, executionReques
// FIXME: Should we handle replies properly?
// In certain cases, a workflow may e.g. be aborted already. If it's aborted, that returns
// a 401 from the worker, which returns an error here
- go sendWorkerRequest(executionRequest)
+ //go sendWorkerRequest(executionRequest)
+ sendWorkerRequest(executionRequest)
+
//err := sendWorkerRequest(executionRequest)
//if err != nil {
// log.Printf("[ERROR] Failed worker request for %s: %s", executionRequest.ExecutionId, err)
@@ -859,10 +861,15 @@ func main() {
workerImage := fmt.Sprintf("%s/%s/shuffle-worker:%s", baseimageregistry, baseimagename, workerVersion)
if swarmConfig == "run" || swarmConfig == "swarm" {
checkSwarmService(ctx)
+
+ log.Printf("[DEBUG] Cleaning up containers from previous run")
+ cleanupExistingNodes(ctx)
+ time.Sleep(time.Duration(5) * time.Second)
+
log.Printf("[DEBUG] Deploying worker image %s to swarm", workerImage)
deployServiceWorkers(workerImage)
- log.Printf("[DEBUG] Waiting 30 seconds to ensure workers are deployed. Run: \"docker service ls\" for more info")
- time.Sleep(time.Duration(30) * time.Second)
+ log.Printf("[DEBUG] Waiting 45 seconds to ensure workers are deployed. Run: \"docker service ls\" for more info")
+ time.Sleep(time.Duration(45) * time.Second)
//deployServiceWorkers(workerImage)
}
@@ -900,7 +907,7 @@ func main() {
if err != nil {
log.Printf("[ERROR] Failed making request builder during init: %s", err)
- os.Exit(3)
+ return
}
zombiecounter := 0
@@ -1336,6 +1343,7 @@ func sendWorkerRequest(workflowExecution shuffle.ExecutionRequest) error {
)
if err != nil {
log.Printf("[ERROR] Failed creating worker request: %s", err)
+
if strings.Contains(fmt.Sprintf("%s", err), "connection refused") || strings.Contains(fmt.Sprintf("%s", err), "EOF") {
workerImage := fmt.Sprintf("%s/%s/shuffle-worker:%s", baseimageregistry, baseimagename, workerVersion)
deployServiceWorkers(workerImage)
@@ -1349,7 +1357,7 @@ func sendWorkerRequest(workflowExecution shuffle.ExecutionRequest) error {
newresp, err := client.Do(req)
if err != nil {
- log.Printf("[ERROR] Error running worker request: %s", err)
+ log.Printf("[ERROR] Error running worker request (1): %s", err)
if strings.Contains(fmt.Sprintf("%s", err), "connection refused") || strings.Contains(fmt.Sprintf("%s", err), "EOF") {
workerImage := fmt.Sprintf("%s/%s/shuffle-worker:%s", baseimageregistry, baseimagename, workerVersion)
deployServiceWorkers(workerImage)
@@ -1368,7 +1376,7 @@ func sendWorkerRequest(workflowExecution shuffle.ExecutionRequest) error {
}
if newresp.StatusCode != 200 {
- log.Printf("[ERROR] Error running worker request - status code is %d, not 200. Body: %s", newresp.StatusCode, string(body))
+ log.Printf("[ERROR] Error running worker request (2) - status code is %d, not 200. Body: %s", newresp.StatusCode, string(body))
workerImage := fmt.Sprintf("%s/%s/shuffle-worker:%s", baseimageregistry, baseimagename, workerVersion)
deployServiceWorkers(workerImage)