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

Jobs/main page view fails to load #2462

Closed
perttus opened this issue Mar 30, 2023 · 1 comment · Fixed by #2467
Closed

Jobs/main page view fails to load #2462

perttus opened this issue Mar 30, 2023 · 1 comment · Fixed by #2467

Comments

@perttus
Copy link
Contributor

perttus commented Mar 30, 2023

As soon as we started to ingest some metadata from Airflow and Spark it fails to load the page. There is only 66 jobs and we are using "airflow" namespace instead of default.

If I go to /events page the UI loads again and if I change the namespace back to default I can load the main/jobs page again.

I wonder if it's related to that some of the event payloads are so big that the events UI fails to load them. There was some prompt that suggested to load it as json file instead.

I see this error in the console with the empty jobs/main page:

react-dom.production.min.js:209 TypeError: Cannot read properties of null (reading 'state')
at Jobs.tsx:121:66
at Array.map ()
at t.render (Jobs.tsx:95:27)
at Fi (react-dom.production.min.js:182:192)
at Pi (react-dom.production.min.js:181:224)
at bc (react-dom.production.min.js:263:490)
at ml (react-dom.production.min.js:246:265)
at ul (react-dom.production.min.js:246:194)
at al (react-dom.production.min.js:239:172)
at react-dom.production.min.js:123:115

@perttus
Copy link
Contributor Author

perttus commented Apr 3, 2023

So it seems that there are some cases where job latestRun is null and this should be handled when trying to read it in runStateColor:

color={runStateColor(job.latestRun.state)}

It's already being handled in stopWatchDuration:

{job.latestRun && job.latestRun.durationMs

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 a pull request may close this issue.

1 participant