Running Jobs#

This how-to explains how to run Jobs in Dioptra.

Prerequisites#

Job Creation Workflow#

Follow these steps to create and run a job. You can perform these actions via the Graphical User Interface (GUI) or programmatically using the Python Client.

Step 1: Prepare the experiment, entrypoint, and queue for the job#

In the Dioptra GUI, navigate to the Jobs tab. Click Create. Select an experiment, an entrypoint, and a queue for the job.

Enter a timeout using a human readable string (e.g. “24h”, “30m”, “30s”).

The default unit for the timeout is seconds (s) if not specified, and is based on the rq package. Alternatively, h can be used to represent hours, and m can be used to represent minutes.

Note that the job will be stopped after this timeout is reached.

Optionally, enter a description for the job.

Step 2: Decide on parameterization for the job#

Entrypoints are parameterizable, and jobs can populate these parameters with values (or rely on defaults defined at entrypoint creation).

On the job creation page, under the Entrypoint Parameters section, enter values for the parameters or accept the defaults.

Step 3: Select any needed artifacts for the job#

Entrypoints may also require artifact parameters. Artifacts can be generated by other jobs, and the output type must match the type required by the entrypoint for that artifact input.

On the job creation page, under the Artifact Parameters section, select the artifact to be used for each artifact input. You can use the clock shaped button to select a specific artifact snapshot.

Step 4: Run the job#

Once all the inputs are prepared, run the job.

Click Submit Job when all fields and parameter values are set.

See Also#