Copy execution environment to Poseidon on create and update

When creating or updating an execution environment, an API call to
Poseidon is made with the necessary information to create the
corresponding Nomad job.

If runner management is configured, his will display a warning
(currently in the same color as if it were a success) in the UI, if the
API call fails. The environment is saved even if it fails.
If runner management is not configured, this warning will not be created.
This commit is contained in:
Konrad Hanff
2021-06-01 14:07:35 +02:00
committed by Sebastian Serth
parent b762c73ddd
commit 90fac7b94c
10 changed files with 100 additions and 13 deletions

View File

@ -14,6 +14,7 @@ de:
file_type_id: Standard-Dateityp
help: Hilfetext
memory_limit: Speicher-Limit (in MB)
cpu_limit: CPU-Limit (in MHz)
network_enabled: Netzwerkzugriff
name: Name
permitted_execution_time: Erlaubte Ausführungszeit (in Sekunden)
@ -281,7 +282,9 @@ de:
hints:
command: <em>filename</em> wird automatisch durch den richtigen Dateinamen ersetzt.
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.
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.
index:
shell: Shell
shell:

View File

@ -14,6 +14,7 @@ en:
file_type_id: Default File Type
help: Help Text
memory_limit: Memory Limit (in MB)
cpu_limit: CPU Limit (in MHz)
name: Name
network_enabled: Network Enabled
permitted_execution_time: Permitted Execution Time (in Seconds)
@ -281,7 +282,9 @@ en:
hints:
command: <em>filename</em> is automatically replaced with the correct filename.
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.
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.
index:
shell: Shell
shell: