Generalize method and constant names for runner management

This commit is contained in:
Sebastian Serth
2021-09-13 12:49:56 +02:00
parent e752df1b3c
commit 30603cb7ab
18 changed files with 139 additions and 110 deletions

View File

@ -10,6 +10,7 @@ test:
prometheus_exporter:
enabled: false
runner_management:
enabled: true
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:
enabled: false
strategy: poseidon
url: https://runners.example.org
unused_runner_expiration_time: 180

View File

@ -284,7 +284,7 @@ de:
docker_image: 'Wählen Sie ein Docker-Image aus der Liste oder fügen Sie ein neues hinzu, welches über <a href="https://hub.docker.com/" target="_blank">DockerHub</a> verfügbar ist.'
exposed_ports: Während der Ausführung sind diese Ports für den Nutzer zugänglich. Die Portnummern müssen mit Komma, aber ohne Leerzeichen voneinander getrennt sein.
errors:
not_synced_to_poseidon: Die Ausführungsumgebung wurde erstellt, aber aufgrund eines Fehlers nicht zu Poseidon synchronisiert.
not_synced_to_runner_management: Die Ausführungsumgebung wurde erstellt, aber aufgrund eines Fehlers nicht zum Runnermanagement synchronisiert.
index:
shell: Shell
synchronize_all:

View File

@ -284,7 +284,7 @@ en:
docker_image: Pick a Docker image listed above or add a new one which is available via <a href="https://hub.docker.com/" target="_blank">DockerHub</a>.
exposed_ports: During code execution these ports are accessible for the user. Port numbers must be separated by a comma but no space.
errors:
not_synced_to_poseidon: The ExecutionEnvironment was created but not synced to Poseidon due to an error.
not_synced_to_runner_management: The execution environment was created but not synced to the runner management due to an error.
index:
shell: Shell
synchronize_all:

View File

@ -67,7 +67,7 @@ Rails.application.routes.draw do
get :statistics
end
post :synchronize_all_to_poseidon, on: :collection
post :sync_all_to_runner_management, on: :collection
end
post '/import_exercise' => 'exercises#import_exercise'