feat(practice): queue practice runs with one running and ten waiting
This commit is contained in:
1 parent
51770eea6c
commit
754c745fba
40 files changed
+3040
-70
No files matched your search
@@ -162,6 +162,8 @@ type Config struct {
|
||||
// CodeRunner configures the client of the own code runner. It is disabled
|
||||
// unless CODE_RUNNER_URL is set.
|
||||
CodeRunner CodeRunnerSettings
|
||||
// Practice configures the debug run limits and the practice queue worker.
|
||||
Practice PracticeSettings
|
||||
|
||||
// TrustedProxyCIDRs are the reverse proxies in front of the API. The
|
||||
// client address is taken from X-Forwarded-For only through them (see
|
||||
@@ -267,6 +269,11 @@ func (config *Config) loadIdentityAndProxySettings(lookup LookupEnv) error {
|
||||
return err
|
||||
}
|
||||
config.CodeRunner = codeRunner
|
||||
practice, err := LoadPracticeSettings(lookup, codeRunner.RequestTimeout)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
config.Practice = practice
|
||||
return config.loadTrustedProxies(lookup)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user