More finalizing for orborus to talk to workers properly
This commit is contained in:
@@ -19,7 +19,7 @@ require (
|
|||||||
github.com/gorilla/mux v1.8.0
|
github.com/gorilla/mux v1.8.0
|
||||||
github.com/h2non/filetype v1.1.3
|
github.com/h2non/filetype v1.1.3
|
||||||
github.com/satori/go.uuid v1.2.0
|
github.com/satori/go.uuid v1.2.0
|
||||||
github.com/shuffle/shuffle-shared v0.4.59
|
github.com/shuffle/shuffle-shared v0.4.61
|
||||||
golang.org/x/crypto v0.9.0
|
golang.org/x/crypto v0.9.0
|
||||||
google.golang.org/api v0.125.0
|
google.golang.org/api v0.125.0
|
||||||
google.golang.org/appengine v1.6.7
|
google.golang.org/appengine v1.6.7
|
||||||
|
|||||||
@@ -1370,7 +1370,6 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
newresp, err := client.Do(req)
|
newresp, err := client.Do(req)
|
||||||
//log.Printf("[DEBUG] Postrequest - queue")
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("[WARNING] Failed making request to %s: %s", fullUrl, err)
|
log.Printf("[WARNING] Failed making request to %s: %s", fullUrl, err)
|
||||||
|
|
||||||
@@ -1809,7 +1808,6 @@ func sendWorkerRequest(workflowExecution shuffle.ExecutionRequest) error {
|
|||||||
baseUrlSplit := strings.Split(baseUrl, ":")
|
baseUrlSplit := strings.Split(baseUrl, ":")
|
||||||
if len(baseUrlSplit) >= 3 {
|
if len(baseUrlSplit) >= 3 {
|
||||||
parsedBaseurl = strings.Join(baseUrlSplit[0:2], ":")
|
parsedBaseurl = strings.Join(baseUrlSplit[0:2], ":")
|
||||||
//parsedRequest.BaseUrl = fmt.Sprintf("%s:33333", parsedBaseurl)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1819,15 +1817,12 @@ func sendWorkerRequest(workflowExecution shuffle.ExecutionRequest) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
//log.Printf("[DEBUG] Data: %s", string(data))
|
|
||||||
|
|
||||||
streamUrl := fmt.Sprintf("http://shuffle-workers:33333/api/v1/execute")
|
streamUrl := fmt.Sprintf("http://shuffle-workers:33333/api/v1/execute")
|
||||||
if containerId == "" || containerId == "shuffle-orborus" {
|
if (containerId == "" || containerId == "shuffle-orborus") && !strings.Contains(workerServerUrl, "shuffle-backend") {
|
||||||
streamUrl = fmt.Sprintf("%s:33333/api/v1/execute", parsedBaseurl)
|
streamUrl = fmt.Sprintf("%s:33333/api/v1/execute", parsedBaseurl)
|
||||||
}
|
}
|
||||||
|
|
||||||
// var workerServerUrl = os.Getenv("SHUFFLE_WORKER_SERVER_URL")
|
if len(workerServerUrl) > 0 && !strings.Contains(workerServerUrl, "shuffle-backend") {
|
||||||
if len(workerServerUrl) > 0 {
|
|
||||||
streamUrl = fmt.Sprintf("%s:33333/api/v1/execute", workerServerUrl)
|
streamUrl = fmt.Sprintf("%s:33333/api/v1/execute", workerServerUrl)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user