++++++++++++++++++++ Working with the CLI ++++++++++++++++++++ Prerequisite ------------ :doc:`Install ADS CLI <../../quickstart>` Running a Pre Defined Job ------------------------- .. code-block:: shell ads opctl run --ocid Delete Job or Job Run --------------------- .. code-block:: shell ads opctl delete Cancel Job Run -------------- .. code-block:: shell ads opctl cancel Cancel Distributed Training Job ------------------------------- Stop a running cluster using ``cancel`` subcommand. **Option 1: Using Job OCID and Work Dir** .. code-block:: shell ads opctl cancel --work-dir **Option 2: Using cluster info file** Cluster info file is a yaml file with output generated from ``ads opctl run -f`` .. code-block:: shell ads opctl cancel --work-dir This command requires an api key or resource principal setup. The logs are streamed from the logging service. If your job is not attached to logging service, this option will show only the lifecycle state.