NAME
gcluster job cancel - cancels a job in the cluster.
SYNOPSIS
gcluster job cancel JOB_NAME [FLAGS]
DESCRIPTION
The gcluster job cancel command cancels a running JobSet or standalone
batch/v1 Job workload in the cluster and cleans up job-scoped storage
resources, such as Cloud Storage FUSE gateway claims and
auto-provisioned Network File System (NFS) resources.
POSITIONAL ARGUMENTS
JOB_NAME- The name of the job to cancel.
PERSISTENT FLAGS
These flags are available to all
gcluster job commands:
-c,--cluster CLUSTER_NAME: The name of the Google Kubernetes Engine (GKE) cluster or Kuberneteskubeconfigcontext. Optional in Kubernetes mode when thecurrent-contextfield is set.-l,--location LOCATION: The location, either a region or a zone, of the GKE cluster (GKE only).-p,--project PROJECT_ID: The Google Cloud project ID (GKE only).--gke-namespace NAMESPACE: The target Kubernetes namespace for the operation. If you omit this flag, then thegclusterCLI detects the namespace automatically.--skip-prereqs: Skips local environment prerequisite checks, such askubectlandgcloudchecks, and container registry authentication for Crane builds.
EXAMPLES
To cancel a running job named train-job:
gcluster job cancel train-job \
--project=my-project \
--cluster=my-cluster \
--location=us-central1-a