--- label: 'Running and configuring cron' related: - core.maintenance --- {% set cron = render_var(url('system.cron_settings')) %}

{% trans %}Goal{% endtrans %}

{% trans %}Configure your system so that cron will run automatically.{% endtrans %}

{% trans %}What are cron tasks?{% endtrans %}

{% trans %}To ensure that your site and its modules continue to function well, a group of administrative operations should be run periodically. These operations are called cron tasks, and running the tasks is known as running cron. Depending on how often content is updated on your site, you might need to run cron on a schedule ranging from hourly to weekly to keep your site running well.{% endtrans %}

{% trans %}What options are available for running cron?{% endtrans %}

{% trans %}Steps{% endtrans %}

  1. {% trans %}In the Manage administration menu, navigate to Configuration > System > Cron. Note the Last run time on the page.{% endtrans %}
  2. {% trans %}If you want to run cron right now, click Run cron and wait for cron to finish.{% endtrans %}
  3. {% trans %}If you have a way to configure tasks on your web server, copy the link where it says To run cron from outside the site, go to. Set up a task to visit that URL on your desired cron schedule, such as once an hour or once a week. (On Linux-like servers, you can use the wget command to visit a URL.) If you configure an outside task, you should uninstall the Automated Cron module.{% endtrans %}
  4. {% trans %}If you are not configuring an outside task, and you have the core Automated Cron module installed, select a schedule for automated cron runs in Cron settings > Run cron every. Click Save configuration.{% endtrans %}

{% trans %}Additional resources{% endtrans %}