Prevent `cta-admin sq` from listing queues that are not part of the current scheduler
At the moment, when we run cta-admin sq
, it shows several queues with empty requests on ctaproductionfrontendrepack
.
This seems to be a problem because the CTA Frontend is also looking into the entries of the DRIVE_STATE
table for all existing mounts.
When we run cta-admin sq
, it gets the list of all queues from the object store (which here is empty), but also get a list of all existing mounts regardless of the scheduler to which those drives are connected to.
The information from the DRIVE_STATE
table is used to enrich the info from the queues read from the object store:
The problem is that it will include all those queues from DRIVE_STATE
, even if they were actually not found in the object store:
As discussed the solution is to filter the drives by scheduler name, the same way we do for cat-admin dr ls
(without the --all
option).
This is the simplest solution, and does not require changing the behaviour of cta-admin sq
.