Lace Pl Blush Top Hi shoewhatever Fashion Sneakers Wedge up Women's qX6x7 Lace Pl Blush Top Hi shoewhatever Fashion Sneakers Wedge up Women's qX6x7 Lace Pl Blush Top Hi shoewhatever Fashion Sneakers Wedge up Women's qX6x7 Lace Pl Blush Top Hi shoewhatever Fashion Sneakers Wedge up Women's qX6x7

Lace Pl Blush Top Hi shoewhatever Fashion Sneakers Wedge up Women's qX6x7

To help your application to run more efficiently, you should conduct regular website maintenance. You can automate maintenance tasks or jobs to run at scheduled intervals using the Scheduled Jobs page in the Acquia Cloud interface.

Note for Acquia Cloud Site Factory subscribers

For information about cron and scheduling tasks on Acquia Cloud Site Factory, see Managing cron tasks using the management console.

Scheduled jobs are specific to the environment that they are created in. While you cannot create a job that executes a command across multiple environments based on the same schedule, you can create a job for each environment, with each of these jobs using the same command line and schedule.

You should use the Lace Top shoewhatever Women's Pl Wedge Hi Fashion Sneakers up Blush Scheduled Jobs page for scheduled jobs, rather than the default Drupal cron or any of the contributed cron modules, such as Elysia Cron or Mule Pad Mid Crash Suede Women's Aerosoles Brown Etwxpz8fq. Compared to other cron solutions, using the Scheduled Jobs page is more reliable and provides extensive and integrated logging for Acquia Cloud applications.

Disabling Drupal cron

By default, Drupal cron (also known as Sneakers Wedge up Blush Lace Fashion shoewhatever Top Hi Pl Women's poor man’s cron) is enabled for websites. However, Acquia recommends that you disable Drupal cron and instead rely on Acquia Cloud for running scheduled jobs. Using Acquia Cloud for scheduled jobs ensures that cron jobs are run on the schedule that you specify, while default Drupal cron is instead triggered by application activity and only when the application is visited. Disabling Drupal cron both improves reliability and avoids the performance reduction on page requests.

To disable Drupal cron, complete the following steps:

  1. Sign in to your Drupal website as an administrator.
  2. Go to Configuration > System > Cron (http://[site_URL]/admin/config/system/cron).
  3. In the Run cron every list, click Never.
  4. Click Save configuration.

Creating scheduled jobs

Dedicated cron servers on Acquia Cloud Enterprise

Some Acquia Cloud Enterprise subscriptions have a dedicated cron server because of the particular performance needs of their applications. To set up a scheduled job on a dedicated cron server, contact Acquia Support.

To create a new cron job for an environment, complete the following steps:

Pump Women's Silver Luster Open Carolyn Nina Satin Toe qPwBII
  1. Sign in to the Acquia Cloud interface.

  2. Select an application and an environment.

  3. Click Sneakers Wedge shoewhatever up Top Women's Fashion Hi Pl Lace Blush Scheduled Jobs.

  4. Click Add Job to add a scheduled job.

  5. In the Create a new scheduled job on [env] dialog, enter a descriptive name for the job in the Wedge Fashion shoewhatever up Sneakers Women's Top Blush Hi Pl Lace Job name field.

  6. In the Command field, enter the command that you want to have Acquia Cloud regularly run for the environment. You can enter any commands that are allowed from an SSH connection to the environment. A command cannot be longer than 255 characters. If you need to execute a command longer than that, you should incorporate it by Executing a shell script that you run as a scheduled job.


    Remember that % is a special character in cron commands and if your command uses it, you must use a backslash (\) to escape it. For example: your_log_file_$(date +\%F).log.

    For some common cron examples that you can use in this field, see Cron command examples.
    You should test commands using SSH in your Acquia Cloud environment to make sure they work before adding them as automated cron commands.

  7. Select how often you want to run the command from the menus in the Command frequency section:

    • Every minute
    • Every hour, at a number of minutes past the hour
    • Every day, at a certain time
    • Every week, at a certain day of the week and time of day
    • Every month, at a certain day of the month and time of day
    • Every year, at a certain month, day of the month, and time of day

    All times are UTC. As an alternative, you can enter the cron frequency as a string. For more information, see Cron time string format.


    Running cron too frequently can affect performance.

  8. Click Add.

After you create a new job, Acquia Cloud displays the job in the list of scheduled jobs for the environment in which it was created.

Scheduled job output

When a scheduled job runs, and the output is not redirected to stdout, the cron user sends an email to the application user on the same server. This email is saved in Women's Hi Top Lace up Wedge shoewhatever Sneakers Blush Fashion Pl /var/mail.

Lace Sneakers Hi up Blush Women's Wedge shoewhatever Fashion Pl Top Important

If the messages are never picked up or cleared, this eventually fills the disk, which can cause serious problems, including possibly bringing your application down.

To avoid issues, scheduled jobs should always include a logging statement. For example, you could use the following statement, replacing [site] with your environment name, [env] with the environment, and [site_URL] with the base URL to the website you want to execute cron on:

drush @[site].[env] -dv -l http://[site_URL] cron &>> /var/log/sites/${AH_SITE_NAME}/logs/$(hostname -s)/drush-cron.log

In this example, &>> /var/log/sites/${AH_SITE_NAME}/logs/$(hostname -s)/drush-cron.log logs the cron output to a drush-cron.logKensie Women's Laceless Oxford Silver Dante HwPqnpwXZ file in the server’s logs directory, where it will be rotated along with the other logs in that directory. The log file will be rotated only if it is named drush-cron.log. For more information, see About Acquia Cloud logging.

To improve usability, you can also add a timestamp to the log messages, replacing [site] with your environment name, [env] with the environment, and [site_URL] with the base URL to the website you want to execute cron on:

drush @[site].[env] -dv -l http://[site_URL] cron 2>&1 | awk '{print "["strftime("\%Y-\%m-\%d \%H:\%M:\%S \%Z")"] "$0}' &>> /var/log/sites/${AH_SITE_NAME}/logs/$(hostname -s)/drush-cron.log

Managing scheduled jobs

Each job that you create on the Scheduled Jobs page has links to help you manage the job, which allow you to do the following:

  • Disable – Stops the scheduled job from running until you click Enable. Disabled jobs move to the Disabled list that follows the Enabled list.
  • Pl Fashion Blush Hi Sneakers Wedge shoewhatever up Lace Top Women's Edit – Opens a window that allows you to change the attributes of the scheduled job. After you make your changes, click Edit.
  • Remove – Opens a window that deletes the scheduled job when you click Remove. If you remove a scheduled job, you cannot recover it, and you must manually recreate it to restore the job.


You cannot edit or remove administrative jobs that you did not create for your environments, including automatic backups.

Cron and memory limits

Two approaches in using drush cron are to Use the Acquia Cloud wrapper script for drush cron or to Execute drush cron directly. These approaches have different memory limits. When you use the Acquia cron wrapper, the cron job uses the PHP memory limit for your environment (by default, 128MB). When you use cron directly, it uses the command line process memory limit, which is 512MB. If you find that your cron jobs fail to complete, try defining them to use drush cron directly to take advantage of this higher memory limit. For related information, see Women's Impuls Renee Renee J Black Black Impuls J Women's E7TqFR.

Cron command examples

Use the following examples as you create scheduled jobs for your application’s environments.

Using drush cron

To use drush cron for enhanced cron performance, select from the following methods:

In each of these examples:

  • [site] is the name of your application on Acquia Cloud.
  • [env] is your environment (usually 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 that you wish to target.

Use the Acquia Cloud wrapper script for drush cronStar Taylor Red High All Converse Top Chuck qnT17Rqwf

Use a cron command like this:

/usr/local/bin/ Lace shoewhatever Pl Fashion Sneakers Hi up Wedge Top Blush Women's [site].[env] http://[site_URL]

Note that you do not need to append a cron_key to the website URL. The output of drush cron is logged to a file with a name like /var/log/sites/[site].[env]/logs/[server]/drush-cron.log. For example, if your site name was example, the log file for the prod environment might be named /var/log/sites/

Execute drush cron directly

drush @[site].[env] -dv -l http://[site_URL] cron &>> /var/log/sites/${AH_SITE_NAME}/logs/$(hostname -s)/drush-cron.log

In this example, &>> /var/log/sites/${AH_SITE_NAME}/logs/$(hostname -s)/drush-cron.log logs the cron output to a drush-cron.log file in the server’s logs directory. As already noted, cron jobs should always include a logging statement, as in this example.

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

drush -v ev "mymodule_cron();"  &>> /var/log/sites/${AH_SITE_NAME}/logs/$(hostname -s)/drush-cron.log

The previous command will log output to the standard log files, ensuring that log rotation and maintenance continues.

Executing a shell scriptup Womens On Lace Fashion Sneaker Slip Glitter Platform Sparkle Glitter Wedge Metallic Silverv1 HHpq6wR

You can create scheduled jobs to execute shell scripts that you have written.


Acquia recommends using this method for any complex or long commands to be executed by cron. This ensures that complex commands can be stored in version control when necessary, enables more controlled error logging, and prevents potential problems submitting these commands to the Acquia Cloud interface.

Klogs Patent Love Imperial Clog Spring Leather Women's Footwear qx6RwSqpCf

For this example we will assume that you have added scripts/ to your repository.


where [site].[env] is your site name and environment.


We highly recommend that you add your shell scripts to your source code repository. We also recommend adding a library or scripts folder to your repository in the same directory as acquia-utils and [docroot].

Leather Women's Nine white Emmala Pump West Off Leather A4CwFxtqC

Still need assistance? Contact Acquia Support

53 State Street, 10th Floor
Boston, MA 02109
United States
Phone: 888-922-7842

Map: Google Maps
View other locations

  v: stable
On Read the Docs
Project Home
On GitHub

Documentation hosted by Read the Docs.