Jobs

Overview


Jobs are a type of Domino Run where an executor machine is assigned to execute a specified command in its OS shell. You can use Jobs to run Python, R, or Bash scripts from your Project.

Each Job keeps a snapshot of all your files, including any results the code creates or modifies. This includes charts, tables, data files, and serialized model data. All assets are versioned and can be compared across different Jobs. Read about the Domino service filesystem to learn more about the filesystem environment your Jobs will run in.

When you start a Job, Domino launches a new environment for your code on the target executor. You can start multiple concurrent Jobs. Each gets its own container environment, so you can try multiple parameters and techniques in parallel. You can schedule recurring Jobs and set up notifications, including customized reports.

 

 

 

Contents


 

 

 

Starting a Job in Domino


Domino offers several ways to launch Jobs:

 

 

Jobs dashboard


Click Jobs from the Project menu to open the Jobs dashboard. This dashboard shows all Jobs from the history of your project, sorted into tabs by Job status.

Click Run at the top to start a new Job.

 

Screen_Shot_2019-02-14_at_12.29.30_PM.png

 

After clicking Run, you will see a Start Run window with options to configure the Job. You need to enter the filename of the script you want Domino to execute, followed by any arguments the script takes.

 

Screen_Shot_2019-02-14_at_12.33.23_PM.png

  

 

Project files page


You can start a Job directly from the project Files page. Find the file you want to run and click the gear icon to the right of its entry in the files list, then click Run.

 

Screen_Shot_2019-01-09_at_10.47.12_PM.png

 

You will then see a dialog you can use to configure the Run. This window has additional options to set up recurring scheduled Jobs and select different hardware tiers.

  • Title

    In this field, enter a name for the Job. This name will be the label for the Job in the Jobs dashboard.

  • Parameters

    If there are any arguments or parameters you’d like to pass to your script, enter them here.

  • Hardware tier

    This dropdown list lets you set the hardware tier used by the Job.

  • Schedule to repeat

    In this section, specify if you want the run to execute only once, or to repeat on a schedule. 

  • Publish after complete

    Check this if you want Domino to republish a Model API once the Job completes successfully.

 

  

Domino CLI


From your workstation, you can start Jobs through the Domino CLI . Follow these instructions to install the CLI on your system.

Once you have logged in and opened a project, you can start Jobs with:

domino run <filename>

Examples

domino run calculateStats.r
domino run runModel.m model1 .05
domino run --wait runModel.m model1 .05
domino run --direct "pip freeze | grep pandas"

 

  

Scheduled Job


Domino allows you to schedule Jobs in advance, and set them to execute on a regular schedule. These can be useful when you have a data source that is updated regularly.

Learn more about creating and managing scheduled Jobs.

 

  

Launchers


A Launcher is a web form that rests on top of a script that Domino can execute in a Job. You can use a Launcher to pass arguments to your script from UI fields in a customized web form.

Learn more about Launchers. 

 

  

API


You can use the Domino API to start a Job with a POST request to:

https://<domino-url>/v1/projects/<username>/<project-name>/runs

For more information on how to send valid configuration data, read the API docs.

 

 

Quick Action menu


On Domino 3.2+ you can launch a Job from the Quick Action menu.

 

 

 

 

 

Managing Jobs with the Jobs dashboard


Click Jobs from the Project menu to open the Jobs dashboard. Here you can see a table of all Jobs from the history of this Project, sorted into tabs by queued, running, completed, and archived state. You can use the Jobs dashboard to find, manage, and view results from your Jobs in the following ways:

 

 

Viewing Job details and results


Click a row in the Jobs dashboard table to see a panel with details on the listed Job. You can filter the table by Job title with the Search box.

 

Screen_Shot_2019-02-14_at_12.54.56_PM.png

 

Where are my Workspace sessions and Apps?

In previous versions of Domino, all Runs were displayed in a single dashboard.

In Domino 3.3+, the Jobs dashboard now only shows Jobs.

You can find Workspace sessions on the Workspaces dashboard, and hosted Apps on the Apps dashboard.

 

 

Tagging Jobs


You can tag an individual job by clicking + under the Job title in the details panel.

 

Screen_Shot_2019-02-14_at_1.02.02_PM.png

 

You can also bulk tag Jobs by checking them in the table and then clicking the Bulk Tag button.

 

Screen_Shot_2019-02-14_at_1.04.07_PM.png

 

Once any Jobs in a Project have been tagged, the Project menu will contain an expandable list under the Jobs header with quick links to filtered views of those tagged Jobs.

 

Screen_Shot_2019-02-14_at_1.10.58_PM.png

 

 

 

Archiving Jobs


You can archive Jobs by checking them in the table and clicking the Bulk Archive button.

 

Screen_Shot_2019-02-14_at_1.15.29_PM.png

 

 

 

Stopping Jobs


You can find currently running Jobs on the Running tab, and stop them by checking them and clicking the Bulk Stop button.

 

Screen_Shot_2019-02-14_at_1.19.17_PM.png

 

 

Comparing Jobs


You can create a Jobs comparison report by checking exactly two Jobs in the table, then clicking the Compare button.

 

Screen_Shot_2019-02-14_at_1.24.11_PM.png

 

 

Customizing your Jobs dashboard columns


Click the funnel icon above the table of Jobs to customize which columns are displayed in the Jobs dashboard. Note that if any Jobs in your project have produced Run diagnostic statistics, the keys from dominostats.json will become available as columns, allowing you to quickly compare these outputs.

 

Screen_Shot_2019-02-14_at_1.31.02_PM.png

Was this article helpful?
0 out of 0 found this helpful