orborus can now start the tenzir node based on the request

This commit is contained in:
satti-hari-krishna-reddy
2024-07-03 11:09:52 +05:30
parent dbbe54a8c6
commit ccad70a2ee
+10 -1
View File
@@ -2072,7 +2072,16 @@ func main() {
}
toBeRemoved.Data = append(toBeRemoved.Data, incRequest)
} else {
} else if incRequest.Type == "START_TENZIR" {
err := deployTenzirNode()
if err != nil{
log.Printf("[ERROR] failed to deploy the pipeline, reason: %s", err)
}
toBeRemoved.Data = append(toBeRemoved.Data, incRequest)
} else {
newrequests = append(newrequests, incRequest)
}
}