A cron job is a script that is set to run at a particular time or interval. Drupal8 has a cron that can run and perform various things regarding your Drupal 8 installation. These include checking for updates for the core and modules as well as maintenance tasks such as clearing logs.

By default, the cron task is set to not run, but you can certainly set it to run either at a scheduled time or even run it manually whenever you wish. The cron can be resource intensive on the webserver so it is not a good idea to run it too often. Below are the instructions on how to set your cron intervals as well as run the cron manually, if needed.

In this tutorial:

How to run Cron jobs in Drupal 8

Setting the cron interval

  1. Log into your administration dashboard.
  2. Click the Menu tab option from the upper menu bar.
  3. Next, click on the Configuration tab from the second menu bar.
  4. This brings up the Configuration screen. From here, find the Systems category and click on the Cron option.
  5. From the Cron page, locate the Cron Frequency dropdown and select your desired interval. It is recommended not to use a frequency of less than 12 hours as the cron can cause higher resource usage on your server as it runs. Limiting this to once or twice a day maximum will help maintain optimum server health.
  6. Once you have selected your interval, click on the Save button to finish up. Your cron will now run on the selected interval.

Running the cron manually

  1. Log into the admin interface.
  2. Using the upper menu bar, click on the Menu option, then click on the Configuration option from the secondary menu bar.
  3. You are brought to the Configuration screen. Look for the Systems category and then click on the Cron option.
  4. Now that you are on the Cron page, simply select the Run Cron button to run the cron function manually.
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!