Skip to content

Commit dea5d84

Browse files
Merge pull request #283 from yashsinghcodes/main
added resp header for health
2 parents acd3a40 + 1fbe4cd commit dea5d84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

health.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,7 @@ func RunOpsHealthCheck(resp http.ResponseWriter, request *http.Request) {
849849
}
850850
}
851851

852+
resp.Header().Set("Content-Type", "application/json")
852853
resp.WriteHeader(200)
853854
resp.Write(platformData)
854855
}
@@ -1299,7 +1300,7 @@ func RunOpsWorkflow(apiKey string, orgId string, cloudRunUrl string) (WorkflowHe
12991300
}
13001301

13011302
updateOpsCache(workflowHealth)
1302-
timeout := time.After(5 * time.Minute)
1303+
timeout := time.After(10 * time.Minute)
13031304

13041305
// 3. Check if workflow ran successfully
13051306
// ping /api/v1/streams/results/<execution_id> while workflowHealth.RunFinished is false

0 commit comments

Comments
 (0)