canonical / canonical/testflinger

Enhanced queues (Epic)

Open
#968 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
26
Forks
49
Avg merge
4d 8h
Merged PRs (30d)
16

Description

There are multiple ways we could "enhance" /queues, but here are some ideas:
- add counts of agents online and offline
- make it faster
- consider the true value of "advertised" queues and consider making the full list available
- with respect to the API, allow for just the queue names to be fetched (quick)
- and then a set of fields to be specified in addition (e.g. job counts, online agents, offline agents, description, etc.) again for speed
- server-side filtering support based on queue name and all available attributes (e.g. online agents minus current jobs = show me open queues only)
- create new queues based on hardware which can be combined and filtered (e.g. give me all queues with AMD CPU and NVIDIA GPU and > 64 GB RAM and a 10Gbit NIC)
- `database.py` has a comment "# Remove advertised queues that haven't updated in over 7 days" which I think is not only applicable to "advertised" queues.
- `v1.py` has a comment "Get restricted queues for a specific agent." but the uri does not relate to an agent
- related, `get_restricted_queue` has the wrong return type (`jsonify` returns `Response`)

- documentation for reserved queues is a separate page from explanation/queues.rst; should probably be _section_ within queues.rst like advertised queues

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.