Get Cron Schedule
get_cron_scheduleRetrieve recent Magento cron schedule entries to debug stuck, missed, or error jobs. Optionally filter by job code pattern and limit results.
Instructions
Returns recent cron_schedule entries ordered by newest first. Filter by job_code pattern optionally. Use to debug stuck, missed, or error cron jobs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of recent cron_schedule rows to return (default 30, max 200). | |
| profile | No | Override the MAGENTO_SQL_PROFILE env var for this call only. Use list_connection_profiles to see available names. | |
| magentoRoot | No | Absolute path to the Magento root (must contain app/etc/env.php). Defaults to MAGENTO_ROOT env var or auto-discovery. | |
| job_code_pattern | No | Cron job_code LIKE pattern (e.g. 'indexer_%', 'catalog_%'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| rows | Yes | ||
| sampled | No | ||
| rowCount | Yes | ||
| truncated | No |