On this page
Operator manual

app:scheduler:show

Show one scheduled job: its schedule, command, parameters, status and the result of its last run. The command shows what GET /api/admin/scheduler/jobs/{id} returns in the admin API.

Quick start

make exec cmd="php bin/console app:scheduler:show aB3dE5fG7hJ9kL1mN3pQr"

Arguments

Argument Required Description
id Yes Public ID of the scheduled job, as app:scheduler:list prints it

Options

Option Description
--json Print the job as the admin API returns it, as a JSON object on stdout

Details

The command prints the job's ID, name, description, cron expression, type, command, parameters (as a JSON object), status, last and next run, last result, run count, last failure and last error, and when it was created and last updated. Times are in ISO 8601 format; a value that is not set is shown as -.

The command is read-only.

Exit codes

Code Meaning
0 Job shown
1 No scheduled job has this public ID
2 The argument is not a public ID