garm/runner/pool
Mario Constanti dc74c45317 fix: remove unnecessary github api call
There are only a few cases, where we get a job information from github
where the runner name is not set.

For all this cases we do not need to check github API at all because
these jobs are never ever get scheduled to a runner:

job.Action is:

* queued:
  a queued job is just queued and not scheduled to a runner so we do
  not get a runner name from the GH API
* completed:
  when conclusion=cancelled|failure github never scheduled the job to a
  runner and with that we do not get a runner name from the GH API

Signed-off-by: Mario Constanti <mario.constanti@mercedes-benz.com>
2024-06-05 12:37:20 +02:00
..
common.go Deduplicate code 2024-03-17 10:21:41 +00:00
locking.go Remove some code, move some code around 2024-04-01 14:52:37 +00:00
pool.go fix: remove unnecessary github api call 2024-06-05 12:37:20 +02:00
util.go Remove some code, move some code around 2024-04-01 14:52:37 +00:00
util_test.go Add some unit tests 2024-03-15 14:35:23 +00:00