Commit 08369c2f authored by Ahmad Sherif's avatar Ahmad Sherif
Browse files

Merge branch 'zj-add-active-runner-count' into 'master'

Add active runner count

Sometimes it is good to know how many runners are active. This way we could rule out if a large fleet was enabled.

The query takes about 33ms on, so can be safely added.

cc @pcarranza

See merge request !31
parents fdad76bd a86d7a1f
......@@ -18,7 +18,8 @@ module GitLab
personal_snippets: { select: :snippets, where: "type='PersonalSnippet'" },
project_snippets: { select: :snippets, where: "type='ProjectSnippet'" },
users: { select: :users }
users: { select: :users },
active_runners: { select: :ci_runners, where: "active=true AND contacted_at > current_date - 1" }
def run
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment