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

ui: Jobs list doesn’t show a new job (on a locally-built binary?) #10555

Closed
backspace opened this issue May 10, 2021 · 4 comments
Closed

ui: Jobs list doesn’t show a new job (on a locally-built binary?) #10555

backspace opened this issue May 10, 2021 · 4 comments

Comments

@backspace
Copy link
Contributor

Nomad version

Nomad v1.1.0-dev (b890a1f7eb298d25fcb39fd2adbc9fe3d8ee14c2+CHANGES)

Operating system and Environment details

macOS 10.14.6

Issue

When viewing the Nomad UI at localhost:4646 on a locally-built binary, the jobs list doesn’t show a job newly submitted elsewhere. It’s not happening with a released binary 🤔

Reproduction steps

Build a Nomad binary that includes the UI with make dev-ui, run it, open the jobs list at localhost:4646/ui/jobs, submit a job via CLI.

Expected Result

The job should appear in the jobs list.

Actual Result

The job only appears upon refresh, or by leaving and returning to the jobs list.

jobs-no-live-reload

@herter4171
Copy link

@backspace, I was going to make my own issue until I saw this. I am on Amazon Linux 2 with the Nomad version below, and we recently started using two head nodes instead of one. What I have found is that I need to refresh the page for new jobs to show up, which wasn't necessary for a single head node. I hope this gets resolved soon.

Nomad v1.1.2 (60638a086ef9630e2a9ba1e237e8426192a44244)

@fideloper
Copy link

Adding to this - I updated Nomad from 0.12.* to 1.2.6 and saw this behavior.

With 3 servers, and an auto-scaled number of clients (Ubuntu 18.04 AMD64), the Jobs UI does not refresh automatically any longer. I have to refresh the browser.

I'm not sure if this is Chrome-specific, perhaps when you leave the page it stops long-lived HTTP requests:

image

I can see here that job requests seem to get cancelled. I usually keep the tab open forever-ish and check back occasionally.

@josegonzalez
Copy link
Contributor

I'm also seeing this locally, where it definitely wasn't an issue before. It makes debugging issues quite a bit more annoying as I typically have 5-6 tabs open as I trigger various actions in Nomad.

@philrenaud philrenaud moved this to Icebox in Nomad UI Jun 7, 2022
@philrenaud philrenaud moved this from Icebox to Todo in Nomad UI Jun 7, 2022
@ChaiWithJai ChaiWithJai removed the status in Nomad UI Aug 9, 2022
@philrenaud philrenaud moved this to Todo in Nomad UI Sep 22, 2022
@philrenaud philrenaud moved this from Todo to In Progress in Nomad UI Oct 18, 2022
@philrenaud philrenaud self-assigned this Oct 18, 2022
@philrenaud philrenaud linked a pull request Oct 25, 2022 that will close this issue
@ChaiWithJai ChaiWithJai self-assigned this Nov 20, 2022
@ChaiWithJai ChaiWithJai moved this from In Progress to In Review in Nomad UI Nov 22, 2022
@philrenaud philrenaud moved this from In Review to Todo in Nomad UI Jul 13, 2023
@philrenaud philrenaud moved this from Todo to In Progress in Nomad UI Apr 25, 2024
@philrenaud
Copy link
Contributor

Fixed as part of #20452

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment