Documentation

mc batch cancel

New in version mc: RELEASE.2023-03-20T17-17-53Z

Syntax

The mc batch cancel stops an ongoing batch job.

You must specify the job ID. To find the job ID, use mc batch list.

The following command outputs the job definition for the job identified as KwSysDpxcBU9FNhGkn2dCf.

mc batch cancel myminio KwSysDpxcBU9FNhGkn2dCf

The command has the following syntax:

mc [GLOBALFLAGS] batch cancel ALIAS JOBID
  • Brackets [] indicate optional parameters.

  • Parameters sharing a line are mutually dependent.

  • Parameters separated using the pipe | operator are mutually exclusive.

Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.

Parameters

ALIAS
Required

The alias for the MinIO deployment on which the job is currently running.

JOBID
Required

The unique identifier of the batch job to cancel. To find the ID of a job, use mc batch list.

Global Flags

This command supports any of the global flags.

Example

Cancel an ongoing batch job

The following command cancels the job with ID KwSysDpxcBU9FNhGkn2dCf on the deployment at alias myminio:

mc batch cancel myminio KwSysDpxcBU9FNhGkn2dCf

S3 Compatibility

The mc commandline tool is built for compatibility with the AWS S3 API and is tested with MinIO and AWS S3 for expected functionality and behavior.

MinIO provides no guarantees for other S3-compatible services, as their S3 API implementation is unknown and therefore unsupported. While mc commands may work as documented, any such usage is at your own risk.