}}

Jobs

Preview Updated: February 16, 2017

You can create scheduled jobs in DC/OS without installing a separate service. Create and administer jobs in the DC/OS web interface, the DC/OS CLI, or via an API.

Note: The Jobs functionality of DC/OS is provided by the Metronome component, an open source Mesos framework that comes pre-installed with DC/OS. You may sometimes see the Jobs functionality referred to as “Metronome” in the logs, and the service endpoint is service/metronome.

Functionality

You can create a job as a single command you include when you create the job, or you can point to a Docker image.

When you create your job, you can specify:

  • The amount of CPU your job will consume.
  • The amount of memory your job will consume.
  • The disk space your job will consume.
  • The schedule for your job, in cron format. You can also set the time zone and starting deadline.
  • An arbitrary number of labels to attach to your job.
  • Permissions for your job.

Getting Started

You can create and administer jobs in the DC/OS web interface, from the DC/OS CLI, or via the API. DC/OS Web Interface Note: The DC/OS web interface does not cover all possible CLI...

Examples

Create a Simple Job This JSON creates a simple job with no schedule. Create a JSON file with the following contents. { "id": "my-job", "description": "A job that sleeps", "run": { ...