// CheckJobStatus - query the foremast service for the job status
query the foremast service for the job status
// CheckJobStatus - query the foremast service for the job status
func CheckJobStatus(jobID string, serviceName string) ApplicationHealthAnalyzeResponse {
	esUrl := os.Getenv("FOREMAST_SERVICE_ENDPOINT") + "/v1/healthcheck/"
	c, err := NewClient(nil, esUrl)
	healthResponse, err := c.GetStatus(jobID)
	if err != nil {
		log.Printf("[%s] getStatus err: %#v\n%s\n", serviceName, err, err.Error())
		return ApplicationHealthAnalyzeResponse{Status: "Error"}
	}
	log.Printf("[%s] healthStatus: %#v\n", serviceName, healthResponse)
	return healthResponse
}
func CheckJobStatus ( jobID string , serviceName string ) ApplicationHealthAnalyzeResponse { esUrl := os . Getenv ( " " ) + " " c , err := NewClient ( nil , esUrl ) healthResponse , err := c . GetStatus ( jobID ) if err != nil { log . Printf ( " \n \n " , serviceName , err , err . Error ( ) ) return ApplicationHealthAnalyzeResponse { Status : " " } } log . Printf ( " \n " , serviceName , healthResponse ) return healthResponse }
query the foremast service for the job status
query the foremast service for the job status