// UpdateJobStatus enables or disables future job executions
UpdateJobStatus enables or disables future job executions
// UpdateJobStatus enables or disables future job executions
func UpdateJobStatus(request UpdateJobStatusRequest) (UpdateJobStatusResponse, error) {
	job, err := reader.FindOneJob(request.Name)
	if err != nil {
		return UpdateJobStatusResponse{}, err
	}
	job.Status = request.Status
	writer.UpdateJob(&job)
	if request.Status {
		return UpdateJobStatusResponse{Msg: request.Name + " enabled"}, nil
	}
	return UpdateJobStatusResponse{Msg: request.Name + " disabled"}, nil
}
func UpdateJobStatus ( request UpdateJobStatusRequest ) ( UpdateJobStatusResponse , error ) { job , err := reader . FindOneJob ( request . Name ) if err != nil { return UpdateJobStatusResponse { } , err } job . Status = request . Status writer . UpdateJob ( & job ) if request . Status { return UpdateJobStatusResponse { Msg : request . Name + " " } , nil } return UpdateJobStatusResponse { Msg : request . Name + " " } , nil }
UpdateJobStatus enables or disables future job executions
UpdateJobStatus enables or disables future job executions