Use the Data Science Extension for Visual Studio Code to Manage Jobs

Work with jobs using the OCI Data Science Extension for Visual Studio Code.

The OCI Toolkit for Visual Studio Code provide a set of features that helps developers create, test and deploy resources and applications on OCI from within Microsoft Visual Studio Code.

To find the OCI Toolkit for VS Code, go to the Visual Studio Code Marketplace and search for 'OCI'.

Listing Jobs

The Data Science extension is a tree view in the side panel. The data is loaded based on the configuration file specifications, such as user credentials, region, tenancy OCID, and so on

The tree view has tenancy at the top level followed by compartments. Each compartment has projects and each project lists any jobs. Each job lists the artifacts, and all the job runs associated with it.

  1. In the tree navigation on the left side, expand the node for the compartment that you want.
  2. Expand the node for the project that you want.
  3. Expand the node for the job that you want.

Creating a Job

Create a new job from an existing Data Science job artifact.

  1. In the tree navigation on the left side, expand the node for the compartment that you want.
  2. Expand the node for the project that you want.
  3. Expand the node for the job that you want.
  4. Right-click the artifact of the job, and select Create new job from artifact.

    The new job ID is displayed in a pop-up in the lower right corner. The newly created job appears in the tree view after it's created.

Running a Job

  1. In the tree navigation on the left side, expand the node for the compartment that you want.
  2. Expand the node for the project that you want.
  3. Right-click a job, and select Run....
  4. (Optional) Enter the following values:
    • Key and Value: Environment variables control the job. Use Add Environment Variables to add more variables.
    • Command line arguments: Any run options to be used.
    • Max runtime (in minutes): The time limit that the job must complete in.
  5. Click Run to start the job run.

    View the job logs to see the results of the run.

Overriding Local Changes

Revert any local changes to a job by overriding them with the latest available remote specifications.

  1. In the tree navigation on the left side, expand the node for the compartment that you want.
  2. Expand the node for the project that you want.
  3. Expand the node for the job that you want.
  4. Right-click the artifact of the job, and select Get job artifact and override local changes.

    Any local changes are overridden in the job.

Managing Jobs

Learn about job run details, canceling, and deleting them in the OCI Data Science Extension for Visual Studio Code.

After the job run completes, you can do the following:

View the Details

Right-click a job and select View details to redirect to the Console to view the job run details.

View the Output

Right-click a job and select View output to see the logged messages in the output tab of the panel in the lower right corner under the editor region.

Cancel a Job Run

Only job runs that are in ACCEPTED, IN_PROGRESS, or NEEDS_ATTENTION states can be canceled.

Right-click a job and select Cancel job run to see cancel the job run. An informational message appears to alert you that the job run cancellation was started.

Delete the Job Run

Right-click a job and select Delete to delete the job run from the job. Confirm the deletion in the information message by selecting Delete job run.