job

The job block configures a job which can be executed from a Jaffle app.

Example

job "sphinx" {
  command = "sphinx-build -M html docs docs/_build"
}

Here is an WatchdogApp configuration which executes the job:

app "watchdog" {
  class  = "jaffle.app.watchdog.WatchdogApp"
  kernel = "py_kernel"

  options {
    handlers = [
      {
        patterns           = ["*/my_module/*.py", "*/docs/*.*"]
        ignore_patterns    = ["*/_build/*"]
        ignore_directories = true
        jobs               = ["sphinx"]
      },
    ]
  }
}

Description

  • command (str | required)

    The command and arguments separated by whitespaces.

  • logger (logger | optional | default: {})

    The job logger configuration.

Jaffle Apps

Only WatchdogApp supports executing jobs.