Skip to content
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

Merged

Conversation

suprjinx
Copy link
Contributor

Closes #1494

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this temporary?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error -> Warn I mean?

Copy link
Contributor Author

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)))
Copy link
Contributor Author

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

@suprjinx suprjinx merged commit 88019d0 into armadaproject:master Oct 21, 2022
@suprjinx suprjinx deleted the 1494-lookout-use-orig_job_spec branch October 21, 2022 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Lookout] Use orig_job_spec rather than job column for displaying the job yaml
2 participants