On this page
Operator manual

app:monitor:job:show

Show one background job: its status, attempts, timing and error class. The command shows what GET /api/monitor/jobs/{jobId} returns in the admin API and what the job panel of the admin Job Monitor displays.

Quick start

The Make examples below target the checkout's development preview. For an installed instance, use the dc function from Getting started and replace make exec cmd="php bin/console …" with dc exec app php bin/console ….

make exec cmd="php bin/console app:monitor:job:show <jobId>"

Arguments

Argument Required Description
jobId Yes The job ID, as app:monitor:jobs lists it

Options

Option Default Description
--json off Print the data payload of GET /api/monitor/jobs/{jobId} as JSON instead of a list

Details

The command prints the job's type, queue, status, progress, attempt number, whether it was retried, whether it can be cancelled with app:monitor:job:cancel, its creation, start and finish times, and its run time in seconds. For a failed job it also prints the error class. The table and JSON omit the stored message, exception message and stack trace. app:monitor:job:retry still retries the stored message through the application; showing a job does not disclose that message.

The run time is that of the current attempt. A job that has not finished has none.

Exit codes

Code Meaning
0 Job printed
1 No job has this ID, or the job monitor could not be read; the message says which