Introduce strategy for runner behavior

The runner model is only a class responsible for storing information
now. Based on the configuration it picks a strategy for the runner
management. The Poseidon strategy is already implemented and tested.
The Docker strategy will follow.
This commit is contained in:
Felix Auringer
2021-06-09 09:39:56 +02:00
committed by Sebastian Serth
parent cf58be97ee
commit d0d1b1bffd
13 changed files with 541 additions and 433 deletions

View File

@ -10,5 +10,6 @@ test:
prometheus_exporter:
enabled: false
runner_management:
strategy: poseidon
url: https://runners.example.org
unused_runner_expiration_time: 180

View File

@ -12,6 +12,7 @@ default: &default
prometheus_exporter:
enabled: false
runner_management:
strategy: poseidon
url: https://runners.example.org
unused_runner_expiration_time: 180