Cron List
cron_listList Drupal cron jobs and see when cron last ran, so you can verify scheduled tasks without triggering them.
Instructions
List the jobs Drupal runs on cron, and when cron last ran.
In Drupal 8+ a "cron job" is a module implementing hook_cron; there is
no job registry and no drupal_get_cron_jobs() - that Drupal 7 function
is what this tool used to call, so it returned "Call to undefined
function" on every site it has ever run against.
The implementations sit behind ModuleHandler::invokeAllWith(), whose
callback is handed the listener without being forced to invoke it. Only
$module is relied on: through Drupal 8-10 the callback receives
($function, $module, $arguments) and in Drupal 11 ($listener, $module), so the module is the second argument in every version, and
never calling the first argument is what stops listing a job from
running cron.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||