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.

static preprocess_config(s)[source]
storage[source]
jobs[source]
webapp[source]
celery[source]
secret[source]
get_storage()[source]
get_job_config(job_id)[source]
get_job(job_id)
get_job_deps(job_id)[source]
get_job_revdeps(job_id)[source]
class jobcontrol.config.BuildConfig(initial=None)[source]

Object holding a build configuration, including:

  • function
  • arguments (args)
  • keyword arguments (kwargs)
  • dependencies
  • pinned builds (pinned_builds)
  • title, notes, ..
class jobcontrol.config.Retval(job_id)[source]

Placeholder object for !retval <n>