garm/runner
Gabriel Adrian Samfira 80e08e7db0 Fix max runners check and leaky JIT runners
The check for max runners was added to CreateInstance(), but we crete the
JIT runners before we run the function to add a runner to the DB. The defer
function to clean up the JIT runner was being run after the error return
generated by CreateInstance. So the cleanup code never ran. Additionally
we would know that max runners was reached only after creating the JIT
runner. Which kills rate limits.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2026-02-11 23:06:15 +02:00
..
common Ensure scale set exists 2025-08-23 18:55:08 +00:00
metrics Use the repository name for jobs 2026-02-11 18:01:55 +02:00
mocks Add SPA UI for GARM 2025-08-16 09:09:13 +00:00
pool Fix max runners check and leaky JIT runners 2026-02-11 23:06:15 +02:00
providers Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
agent.go Add agent mode 2026-02-08 00:27:47 +02:00
common.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
common_test.go Add copyright header 2025-05-20 09:43:29 +00:00
enterprises.go Add agent mode 2026-02-08 00:27:47 +02:00
enterprises_test.go Add agent mode 2026-02-08 00:27:47 +02:00
garm_tools.go Handle garm-agent tools upload/sync 2026-02-08 00:27:47 +02:00
garm_tools_test.go Add runner rotate ability to CLI 2026-02-09 00:30:57 +02:00
gitea_credentials.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
gitea_endpoints.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
github_credentials.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
github_endpoints.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
interfaces.go Add agent mode 2026-02-08 00:27:47 +02:00
metadata.go Use separate endpoints to list tools 2026-02-08 16:00:50 +02:00
metadata_test.go Use separate endpoints to list tools 2026-02-08 16:00:50 +02:00
object_store.go Handle garm-agent tools upload/sync 2026-02-08 00:27:47 +02:00
object_store_test.go Fix tests 2026-02-08 00:27:47 +02:00
organizations.go Add agent mode 2026-02-08 00:27:47 +02:00
organizations_test.go Add agent mode 2026-02-08 00:27:47 +02:00
pools.go Switch to fmt.Errorf 2025-08-16 22:19:05 +00:00
pools_test.go Add agent mode 2026-02-08 00:27:47 +02:00
repositories.go Add runner rotate ability to CLI 2026-02-09 00:30:57 +02:00
repositories_test.go Add runner rotate ability to CLI 2026-02-09 00:30:57 +02:00
runner.go Handle garm-agent tools upload/sync 2026-02-08 00:27:47 +02:00
scalesets.go Add runner rotate ability to CLI 2026-02-09 00:30:57 +02:00
templates.go Add agent mode 2026-02-08 00:27:47 +02:00
templates_test.go Add agent mode 2026-02-08 00:27:47 +02:00
types.go Move code to external package 2023-07-21 15:34:18 +00:00