perago.ConductorConfig#
- class perago.ConductorConfig(*, server_url)[源代码]#
Worker-local Conductor connection settings.
ConductorConfigis loaded from process environment variables and local.envfiles byload_runtime_config(). It is runtime-only configuration: the server URL is not written into generated TaskDefs and is not passed through Conductor task input.- Parameters:
- server_urlstr
Conductor API endpoint read from
CONDUCTOR_SERVER_URL. Surrounding whitespace is stripped during environment parsing, empty values are treated as not configured, and the placeholder value"replace-me"is rejected before model construction.
- 参数:
server_url (str)
参见
load_runtime_configLoad this model from worker environment settings.
RuntimeConfigFull runtime configuration containing this model.
Notes
The model is frozen and rejects unknown fields.
perago checkandperago extractcan run without this config, butperago startrequires it before starting worker child processes.Examples
>>> ConductorConfig(server_url="http://localhost:8080/api") ConductorConfig(...)
Attributes
server_url