Cloud Platform

Using Drush cron on Cloud Platform environments

On Cloud Platform environments, cron can be triggered using Drush in addition to using scheduled jobs.


The current Drupal version requires Drush version 11 or later. Newer versions of Drush, that is, version 11 and later, must be installed via Composer. Acquia does not manage the update to the newer versions. For more information, see About Drush on Cloud Platform.

To use Drush cron, select from the following methods:

In each of the following examples:

  • [site] is the name of your application on Cloud Platform.

  • [env] is your environment (typically one of dev, test, or prod).

  • [site_URL] is your environment’s URL (as listed on the Cloud > Domains page). If you are using Drupal multisite, your cron jobs are specific to each website in the multisite installation. Use the URL of the website in the installation you want to target.

Running Drush cron directly

You can execute alternative Drush cron commands using the following syntax:

/usr/local/bin/drush --uri=http://[site-uri] --root=/var/www/html/docroot -d -v cron &>> /shared/logs/drush-cron.log

Cron jobs must always include a logging statement.

Triggering a cloud hook through Drush cron

For infrastructure where you want a single hook, you can also run a specific cron hook directly. The command structure will vary based on your Drupal version and module.

/usr/local/bin/drush --root=/var/www/html/docroot -v ev "mymodule_cron();"  &>> /shared/logs/drush-cron.log