prefect
prefect copied to clipboard
Adds server settings models
This PR adds four new settings models:
-
ServerSettings
-
ServerAPISettings
-
ServerDatabaseSettings
-
ServerEphemeralSettings
In general, many settings previously in the PREFECT_API_
namespace will move under the ServerSetting
model.
Support for the old names is maintained via validation aliases for backward compatibility. A new source EnvFilterSettingsSource
is also added to be able to filer environment variables. It turns out all entries in validation_alias
are used to load values via environment variables. I ran into this with the user
field on ServerDatabaseSettings
model since Unix-based operating systems have a USER
environment variable that was getting picked up. Now, all AliasPath
alias choices will be excluded when looking for values via environment variables.