added check for environment in handleQueue worker
This commit is contained in:
@@ -2652,8 +2652,7 @@ func handleWorkflowQueue(resp http.ResponseWriter, request *http.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
if strings.ToLower(actionResult.Action.Environment) == "cloud" {
|
||||
|
||||
if strings.ToLower(actionResult.Action.Environment) != environment {
|
||||
log.Printf("[WARNING] Got an action for %s environment forwarding it to the backend", actionResult.Action.Environment)
|
||||
|
||||
streamUrl := fmt.Sprintf("%s/api/v1/streams", baseUrl)
|
||||
|
||||
Reference in New Issue
Block a user