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

CLI command to return the queue status and length #443

Open
fginther opened this issue Jan 10, 2025 · 1 comment
Open

CLI command to return the queue status and length #443

fginther opened this issue Jan 10, 2025 · 1 comment

Comments

@fginther
Copy link

Our workflow has us allocating jobs to a pool of queues (all maas servers with their own queue). As we have a pool of servers, we want to load balance the jobs if possible. Currently we can only see the length of the queue only after submitting a request. We then have to immediately cancel the job if the queue is too long. Also, the testflinger output only indicates how many jobs are queued. As a result, if the device is idle or in the middle of a job, the queue length is 0. There is no way to determine if the queue has active jobs that I'll end up having to wait on.

What would be helpful is a way to return the status of the queue and how many jobs are waiting. For example:

# testflinger queue-status
usage: testflinger queue-status [-h] queue
# testflinger agent-status hidon
available agents: 1
busy agents: 1
jobs queued: 2
Copy link

Thank you for reporting your feedback to us!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CERTTF-477.

This message was autogenerated

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

1 participant