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

Random task is selected for log viewing when selecting an allocation with multiple tasks #14

Closed
cPanelRicky opened this issue Aug 31, 2021 · 3 comments

Comments

@cPanelRicky
Copy link

When selecting an allocation from the list to view logs, if the allocation has more than one task it appears to be selecting the task to show logs for at random.

$ nomad alloc status 92ffac07 | grep '^Task "' 
Task "postgres" (prestart sidecar) is "running"
Task "sonarperl" is "running"

In this case, I've had both the logs for the postgres the sonarperl tasks be shown without any indication as to why it was selected.

I checked the projects board and didn't see anything that looked like this so I figured I'd open the issue just in case.

Let me know if I can provide any further info!

@hcjulz
Copy link
Collaborator

hcjulz commented Sep 2, 2021

@cPanelRicky Great point! This is happening because Damon at the moment always shows the logs for the first task that appears in the task list 🙈
You are right, I don't have this in the backlog yet. I'll add the option to choose from a task if an allocation has multiple tasks.

@hcjulz
Copy link
Collaborator

hcjulz commented Nov 23, 2021

Hey @cPanelRicky. I took me a bit to finally come to this, but #21 Implements a task selection before showing any logs. It will be merged shortly.

@hcjulz
Copy link
Collaborator

hcjulz commented Nov 23, 2021

I merged #21. I think this issue can be closed. If you you still encounter issues with this, please feel free to re-open.

@hcjulz hcjulz closed this as completed Nov 23, 2021
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

No branches or pull requests

2 participants