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
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)
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.pyhas a comment "# Remove advertised queues that haven't updated in over 7 days" which I think is not only applicable to "advertised" queues.v1.pyhas a comment "Get restricted queues for a specific agent." but the uri does not relate to an agentget_restricted_queuehas the wrong return type (jsonifyreturnsResponse)documentation for reserved queues is a separate page from explanation/queues.rst; should probably be section within queues.rst like advertised queues