'example_cache_clear_worker', ); $info['example_import'] = array( 'queue name' => 'example_import_queue', ); return $info; } /** * Alter cron queue information before cron runs. * * Called by drupal_cron_run() to allow modules to alter cron queue settings * before any jobs are processesed. * * @param array $info * An array of cron schedule information. * * @see hook_cron_queue_info() * @see drupal_cron_run() */ function hook_cron_job_scheduler_info_alter(&$info) { // Replace the default callback 'example_cache_clear_worker' $info['example_reset']['worker callback'] = 'my_custom_reset'; }