jobcontrol.config¶
Objects to manage the configuration.
The configuration object (stored as YAML in the configuration file) must be a dict. Supported keys for the “main” dict are:
- storage: URL to a supported “state” storage
- webapp: Configuration for the webapp, passed to Flask
- celery: Configuration for celery
- jobs: List of job configuration blocks
- secret: Dictionary of “secrets”, which can be referenced by the configuration but are never shown on administration pages, ...
- class jobcontrol.config.JobControlConfig(initial=None)[source]¶
- classmethod from_file(filename)[source]¶
Initialize configuration from a file, or a file-like providing a read() method.
- classmethod from_string(s)[source]¶
Initialize configuration from a string.
The string will first be pre-processed through jinja, then passed to the from_object() constructor.
- get_job(job_id)¶