Settings
The runner reads its configuration from environment variables once, when the
module is imported, into the settings singleton. The meaning and defaults of
every variable are described in Configuration.
- class celery_cloud.settings.Settings[source]
Bases:
objectSettings class, read once from environment variables.
- classmethod get_env_bool(var_name: str, default: bool) bool[source]
Get an environment variable as
bool.Accepts 1/true/yes/on and 0/false/no/off (case insensitive).
- Raises:
ValueError – If the value is not a recognised boolean.
- classmethod get_env_int(var_name: str, default: int) int[source]
Get an environment variable as
int.- Raises:
ValueError – If the value is not an integer.