-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1494 lookout use orig job spec #1683
1494 lookout use orig job spec #1683
Conversation
internal/lookout/repository/jobs.go
Outdated
if err != nil { | ||
log.Errorf("error while parsing job %s json: %v", ParseNullString(row.JobId), err) | ||
log.Warnf("unable to load orig job spec. %+v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this temporary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error -> Warn I mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure why i changed that, will switch back
@@ -979,7 +980,7 @@ func getPriority(t *testing.T, db *goqu.Database, jobId string) float64 { | |||
|
|||
func getJob(t *testing.T, db *goqu.Database, jobId string) *api.Job { | |||
var job api.Job | |||
jobJson := ParseNullString(selectNullString(t, db, fmt.Sprintf("SELECT job FROM job WHERE job_id = '%s'", jobId))) | |||
jobJson := ParseNullString(selectNullString(t, db, fmt.Sprintf("SELECT orig_job_spec FROM job WHERE job_id = '%s'", jobId))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should probably switch to proto marshall/unmarshall instead of jamming json in there
Closes #1494