Skip to content

Commit 1b0ffe3

Browse files
bug fix after refactor on byoc batch jobs
1 parent 354fbe1 commit 1b0ffe3

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

byoc/job_gateway.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,7 @@ func (bsg *BYOCGatewayServer) submitJob(ctx context.Context, w http.ResponseWrit
6969
//send the request to the Orchestrator(s)
7070
//the loop ends on Gateway error and bad request errors
7171
for _, orchToken := range gatewayJob.Orchs {
72-
73-
// Extract the worker resource route from the URL path
74-
// The prefix is "/process/request/"
75-
// if the request does not include the last / of the prefix no additional url path is added
76-
workerRoute := orchToken.ServiceAddr + "/process/request"
77-
prefix := "/process/request/"
7872
workerResourceRoute := r.URL.Path
79-
if strings.HasPrefix(workerResourceRoute, prefix) {
80-
workerResourceRoute = workerResourceRoute[len(prefix):]
81-
}
82-
if workerResourceRoute != "" {
83-
workerRoute = workerRoute + "/" + workerResourceRoute
84-
}
8573

8674
err := gatewayJob.sign()
8775
if err != nil {

0 commit comments

Comments
 (0)