Jobs application#

The Jobs application within Open OnDemand is the perfect tool for individuals who would prefer to use a graphical user interface (GUI) to submit and monitor jobs. Users have the ability to interact with both the Alpine and Blanca clusters with a few simple clicks. To access either of these tools, select the Jobs tab (pictured below). This provides the user with two options Active Jobs and Job Composer. Details for both of these options are provided in the subsections that follow.

A screenshot of Open OnDemand's menu bar, showing the dropdown menu for "Jobs" which lists options for "Active Jobs" and "Job Composer"

Active Jobs#

The Active Jobs tool allows users to view any of their active jobs (or all jobs) for a specific cluster (or all clusters). A user can view jobs running on Alpine, Blanca, or Core (the cluster that Core Desktop and the MATLAB GUI run on) clusters. Additionally, users can cancel their jobs using this tool. To view currently running jobs, first select the Active Jobs tool, this will bring you to the interface pictured below. On the right-hand side, you will see a drop-down button that allows you to view all jobs on the specified cluster (determined by the furthest right button) or only your jobs. To cancel a running job, navigate to the job you would like to cancel and select the red delete button.

A screenshot showing Open OnDemand's Active Jobs dashboard which lists a set of example active jobs. The screenshot highlights the ability to cancel jobs and change the cluster, both of which are explained under the "Active Jobs" heading.

Job Composer#

Although interactive jobs can be extremely helpful, it is often the case that a user would rather submit their job to a cluster where it can run whenever the resources are available. This is accomplished through Batch Jobs and Job Scripting. To provide a simple interface for creating batch jobs and jobs scripting, we include the Job Composer tool. This tool allows users to modify and create job scripts, schedule jobs, and manage these jobs all in one central location. To create a job, navigate to the Job Composer tool and select New Job. When first getting started, it is easiest to select From Default Template, which will construct a template job with a default name and submit script (job script). Once a new job has been selected, a user can modify the job to their liking by navigating the provided interface. Below we provide a graphic that highlights some of the key features users may be interested in.

A screenshot of the Open OnDemand Job Composer dashboard, which includes annotated notes for accessing the user interface's different buttons and an example job script. Descriptions of each button and the screenshot's example code can be found under the "Job Composer Interface Description" heading.

Job Composer Interface Description#

The Job Composer’s interface includes the following key buttons for interacting with job batch scripts:

  • Job Options : Click to modify a job’s name, account, or cluster

  • Submit : Click to submit the selected batch job(s)

  • Stop : Click to cancel the selected batch job(s)

  • Delete : Click to delete batch job script and its containing directory

The Job Detail’s pane (on the right side of the display) will display the job’s settings and basic information. An example job’s information is provided below.

Job Name:
My First Job
Submit to:
Alpine
Account:
Not specified
Script location:
/projects/breyes@xsede.org/ondemand/projects/default/1
Script name:
main_job.sh
Folder Contents:
main_job.sh

The Submit Script pane, located beneath Job Details, includes the batch job’s script. A starter scripted is provided and can be edited by clicking the “Open Editor” button.

#!/bin/bash
#SBATCH --time=00:01:00
#SBATCH --partition=amilan
#SBATCH --qos=normal
#SBATCH --output=sample-%j.out
echo "Hello World"

Important

Be sure to select the appropriate cluster when creating a job. Additionally, caution should be taken when selecting the delete button. The delete button will remove the entire directory created for the job. In the example provided above, this means that /projects/breyes@xsede.org/ondemand/projects/default/1 would be completely deleted.

Note

For more resources on utilizing the provided tool, see OSC’s Job Management help page.