added check for environment in handleQueue worker

This commit is contained in:
yashsinghcodes
2026-01-13 17:46:47 +05:30
parent 6b8d7172a1
commit ed6417b9be
+1 -2
View File
@@ -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)