perago.ConductorConfig#

class perago.ConductorConfig(*, server_url)[源代码]#

Worker-local Conductor connection settings.

ConductorConfig is loaded from process environment variables and local .env files by load_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_config

Load this model from worker environment settings.

RuntimeConfig

Full runtime configuration containing this model.

Notes

The model is frozen and rejects unknown fields. perago check and perago extract can run without this config, but perago start requires it before starting worker child processes.

Examples

>>> ConductorConfig(server_url="http://localhost:8080/api")
ConductorConfig(...)

Attributes

server_url