question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

expose runner-status in API

See original GitHub issue

Describe the enhancement Today the api only exposes on/offline status: https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-a-repository

It would be better if the API could show if the runner is occupied with a job or not (like in the UI).

We want to use this to dynamically provide self-hosted runners based on demand.

usecase:

  1. package runner as docker image
  2. have a k8s controller: https://github.com/evryfs/github-actions-runner-operator/
  3. make runner spawn runners based on CRD high/low water marks and demand for runners.

Also - ideally there should be a possibility to add labels to runners, so that we can have different pools of runners for different environments. These labels should be reflected in the API so we can distinguish them both when listing runners, as well as using in jobs to select the appropriate type of runner.

Code Snippet status, enum of (online,offline,queued) (offline,idle,queued) labels, map of key: val

Additional information Killer feature for providing dynamic build-pools which again can help park Jenkins for good 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:24
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
hrosscommented, May 13, 2020

I added this for internal discussion. I like the feature, I think it deserves some priority. Let me see where we can fit it…

5reactions
bryanmacfarlanecommented, May 13, 2020

I pinged some folks to at least get some 👀 on it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitLab Runner status exposed as a Prometheus metrics
With this API the user can then track all the runners that should be tracked and have any alerting based at all. If...
Read more >
API: Runner not_connected status removal (#347305)
Description Runner REST and GraphQL APIs will return ... see https://gitlab.com/gitlab-org/gitlab/-/issues/344648 - expose :status, ...
Read more >
Using Runner as a Python Module Interface to Ansible
Ansible Runner is intended to provide a directly importable and usable API for interfacing with Ansible itself and exposes a few helper interfaces....
Read more >
Betting Type Definitions
Enter the specific handicap value (returned by RUNNER in listMaketBook) if the market is an Asian handicap market. status. RunnerStatus. (tick).
Read more >
APIReferenceGuide-Offline.pdf
which will be exposed to a wide range of users use the Interactive Login method of recommend ... WINNER, PLACED, LOSER, HIDDEN) Runner...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found