Add button to synchronize all execution environments

This adds a button to the execution environment index page that, when
clicked, causes all execution environments to be synchronized to the
runner management (Poseidon) by creating or replacing them.

CodeOcean does not synchronize it's execution environments on startup or
when a new runner management configuration is used for the first time.
The administrator has to manually start this process by pressing this
button.

The equivalent for syncing just one execution environment is updating
it.
This commit is contained in:
Konrad Hanff
2021-06-07 16:31:15 +02:00
committed by Sebastian Serth
parent 0978a3be83
commit 598de3bcff
6 changed files with 33 additions and 1 deletions

View File

@ -66,6 +66,8 @@ Rails.application.routes.draw do
post 'shell', as: :execute_command, action: :execute_command
get :statistics
end
post :synchronize_all_to_poseidon, on: :collection
end
post '/import_exercise' => 'exercises#import_exercise'