Fixed new microservice-worker architecture to not duplicate executions

This commit is contained in:
frikky
2021-12-21 00:17:13 +01:00
parent 9e8cc0e91e
commit bd248ef7f1
4 changed files with 54 additions and 39 deletions
+4
View File
@@ -78,6 +78,10 @@ class AppBase:
self.logger.info("[DEBUG] Value too large. Returning from magic")
return input_data
if not "\n" in input_data and not "," in input_data:
self.logger.info("[DEBUG] No data to autoparse")
return input_data
new_input = input_data
try:
#new_input.strip()
+1 -1
View File
@@ -412,7 +412,7 @@ func handleWorkflowQueue(resp http.ResponseWriter, request *http.Request) {
}
//log.Printf("Actionresult unmarshal: %s", string(body))
log.Printf("[DEBUG] Got workflow result from %s of length %d", request.RemoteAddr, len(body))
log.Printf("[DEBUG] Got workflow result from %s of length %d. \n\nBody: %s\n\n", request.RemoteAddr, len(body), string(body))
err = shuffle.ValidateNewWorkerExecution(body)
if err == nil {
resp.WriteHeader(200)