Move RunnerConnection into class Runner

The old approach was to require the runner connection. This did
not work anymore with Zeitwerk in Rails 6. @sebastian.serth and I
moved the Connection class in `lib` into the ActiveRecord class
`Runner`. This will also work with future changes like specific
error classes. Furthermore the config was fixed and simplified.

Co-authored-by: Sebastian Serth <Sebastian.Serth@hpi.de>
This commit is contained in:
Felix Auringer
2021-05-25 10:47:49 +02:00
committed by Sebastian Serth
parent 63d997a7e3
commit 8d968e01e6
4 changed files with 8 additions and 15 deletions

View File

@ -4,27 +4,25 @@ default: &default
answers_per_query: 3
code_pilot:
enabled: false
url: //localhost:3000
codeharbor:
enabled: false
codeocean_events:
enabled: false
prometheus_exporter:
enabled: false
runner_management:
url: https://runners.example.org
cleanup_interval: 60
unused_runner_expiration_time: 180
development:
<<: *default
flowr:
enabled: true
answers_per_query: 3
code_pilot:
enabled: false
url: //localhost:3000
codeharbor:
enabled: true
url: https://codeharbor.openhpi.de
prometheus_exporter:
enabled: false
production:
<<: *default
@ -33,5 +31,3 @@ production:
test:
<<: *default
prometheus_exporter:
enabled: false