Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Ultimate Cron uses 'cr' as an alias for 'cron-run' and shouldn't. Drush cr rebuilds cache.
$items['cron-run'] = array(
'description' => "Run cron job",
'arguments' => array(
'name' => 'Job to run',
),
'options' => array(
'force' => 'Only effective when cron-run is run without any arguments. This options skip the schedule check for each job. Locks are still respected. This option is a synonom for --options=bypass_schedule',
'check-schedule' => 'Checks the schedule when running a single job. The opposite of --force but for a single job only',
'options' => 'Custom options for plugins, e.g. --options=thread=1 for serial launcher',
),
'examples' => array(
'drush cron-run node_cron' => 'Run the node_cron job',
'drush cron-run --options=thread=1' => 'Run all scheduled jobs and instruct serial launcher only to launch thread 1 jobs',
),
'aliases' => array('cr'),
);
Comments
Comment #2
lahoosascoots CreditAttribution: lahoosascoots at Acquia commentedComment #3
Ginovski CreditAttribution: Ginovski at MD Systems GmbH commentedI believe this is fixed in #2665728: Port drush commands to Drupal 8. Make sure you have the latest version.