New issue
Advanced search Search tips

Issue 803450 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Feature

Blocking:
issue 735438
issue 752244



Sign in to add a comment

Add API to query all Task Queues

Project Member Reported by mar...@chromium.org, Jan 18 2018

Issue description

Goal:
Be able to programatically determine the sets of dimensions being used by the fleet. The TaskDimensions and BotTaskDimensions entities contain this information.


API:
- tasks/queues: need to determine if 'pool' is a require value
- bots/<id>/queues: all the queues that a bot could run, this is BotTaskDimensions.

Since task queues are grouped by pools, we will probably want to forcibly require a pool before listing the queues, otherwise coherency is not guaranteed.


Ref: https://cs.chromium.org/chromium/infra/luci/appengine/swarming/server/task_queues.py


 

Comment 1 by mar...@chromium.org, Apr 26 2018

Owner: mar...@chromium.org
Status: Assigned (was: Available)

Comment 2 by mar...@chromium.org, Apr 26 2018

Blocking: 752244
Project Member

Comment 3 by bugdroid1@chromium.org, Apr 26 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/infra/luci/luci-py.git/+/009cbaa1289efa7f08ae3c594d68c156a3ea82ab

commit 009cbaa1289efa7f08ae3c594d68c156a3ea82ab
Author: Marc-Antoine Ruel <maruel@chromium.org>
Date: Thu Apr 26 20:26:55 2018

[swarming] Add queues/list RPC to list TaskQueues

This will be needed for monitoring. In the meantime, this can be queried with:
    ./swarming.py query -S chromium-swarm-dev.appspot.com --limit 0 queues/list

which is useful enough for my immediate needs. This will be a building block for
a new UI. I decided to create a new API namespace because I think I will want to
add more RPCs to it.

Bug:  803450 
Change-Id: Ib28f0cc52b15308e7bfb337fb1160281f4f9f7a0
Reviewed-on: https://chromium-review.googlesource.com/1030790
Commit-Queue: Marc-Antoine Ruel <maruel@chromium.org>
Reviewed-by: Quinten Yearsley <qyearsley@chromium.org>

[modify] https://crrev.com/009cbaa1289efa7f08ae3c594d68c156a3ea82ab/appengine/swarming/handlers_endpoints.py
[modify] https://crrev.com/009cbaa1289efa7f08ae3c594d68c156a3ea82ab/appengine/swarming/handlers_endpoints_test.py
[modify] https://crrev.com/009cbaa1289efa7f08ae3c594d68c156a3ea82ab/appengine/swarming/swarming_rpcs.py

Comment 4 by mar...@chromium.org, Apr 27 2018

Status: Fixed (was: Assigned)

Comment 5 by mar...@chromium.org, Jun 21 2018

Blocking: 735438

Sign in to add a comment