Skip to content

mc batch status

Note

Changed: MinIO

RELEASE.2022-10-09T21-10-59Z or later

mcli 20261026 status and exit codes

mcli batch status TARGET JOBID follows a batch job until it completes or fails. When live metrics are not yet available, it reports pending (status: "pending" in JSON) rather than treating a queued job or missing metric sample as complete. If no job metrics arrive for 30 seconds or the stream ends early, the client queries persisted job status (with a 10-second timeout per request) and returns an error if no terminal state is available; re-run the command to resume observation.

Successfully retrieving either a complete or failed terminal state exits 0—automation scripts should inspect the returned status field to determine whether the job succeeded. Unavailable status, missing jobs, and request errors exit non-zero. IOPs calculations also no longer overflow at large object counts; see the release changes.

Syntax

The mc batch status command outputs summaries of job events on a MinIO server.

Note

Changed: mc

RELEASE.2024-07-03T20-17-25Z

Batch status displays summaries for active, in-progress jobs or any batch job completed in the previous three (3) days.

The following command outputs the status of the specified job with JobID KwSysDpxcBU9FNhGkn2dCf currently in progress on the myminio alias.

mcli batch status myminio "KwSysDpxcBU9FNhGkn2dCf"

The command has the following syntax:

mcli [GLOBALFLAGS] batch status TARGET 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

TARGET

mc-cmd

Required

The alias for which to display batch job statuses.

JOBID

mc-cmd

Required

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

Both TARGET and JOBID are required.

Global Flags

This command supports any of the global flags.

Example

Summarize the Events of an Active Replicate Job

The following command provides the real-time summary of an active job on the deployment at alias myminio:

mcli batch status myminio "KwSysDpxcBU9FNhGkn2dCf"
  • Replace myminio with the alias of the MinIO deployment that should run the job.

The output of the above command is similar to the following:

●∙∙
JobType:        replicate
Objects:        28766
Versions:       28766
FailedObjects:  0
Transferred:    406 MiB
Elapsed:        2m14.227222868s
CurrObjName:    share/doc/xml-core/examples/foo.xmlcatalogs

S3 Compatibility

SILO is the supported server for PGSTY mcli; compatibility with upstream MinIO and other S3 services is best effort.