Manage job executions

This page describes how to manage job executions. To execute a job, see Execute jobs.

View job executions in your project

You can view a list of the job executions in your project using the gcloud command line:

Command line

  1. To list all of the job executions for all jobs in your project:

    gcloud beta run jobs executions list
  2. To list only the executions for a specific job:

    gcloud beta run jobs executions list --job JOB_NAME

    Replace JOB_NAME with the name of the job you are filtering on.

For other ways to refine the returned list, including the use of filters, see jobs executions list.

View job execution details

Use the gcloud command line to see more details about a job execution.

Command line

To view details about a job execution:

Use the command:

gcloud beta run jobs executions describe EXECUTION_NAME

Replace EXECUTION_NAME with the name of the execution.

You can use the --format flag to format the output and to get additional information. For example as YAML:

gcloud beta run jobs executions describe EXECUTION_NAME --format yaml

Stop (delete) a job execution

You can stop a running job execution by deleting it. You can also delete job executions that have completed.

Although a deleted execution does not appear in the list of executions, its logs continue to be available in Cloud Logging for the remainder of the log retention period, and monitoring data continues to be available in Cloud Monitoring.

Command line

To delete a job execution:

  1. Use the command:

    gcloud beta run jobs executions delete EXECUTION_NAME

    Replace EXECUTION_NAME with the name of the execution.

  2. If prompted to confirm, respond y. Upon success, a success message will be displayed.