MAGENTO

How to Run Cron Job in Magento

Before clearing up how to run Cron Job in Magento, let’s get the idea of corn. Cron is a standard task planner for Unix ruled systems. You use a cron job to trigger actions at a predetermined time without the presence of admins. For example, if you need to update currency rate every hour. Cron Job in Magento

What Processes Can be Started by Cron in Magento?

In fact you can trigger any process by cron. But If you use out of box magento there is a few cron job you can config in admin panelCron Job in Magento
  • Clean the system of temporary waste
  • Sending newsletters
  • Updating site map
  • Notify customers about new items
  • Updating currency settings
  • Recalculation of price rules

3 easy Ways How to Run Cron Job In Magento

There are three main ways to trigger cron job:We choose these three variants as the simplest ones and can be started even without specific coding skills.

Run Cron Job in Magento with Cron Job Extension

You can download the Cron Job Runner extension. This extension allows you to trigger any cron job right from the admin panel. You will see a cron scheduler with all crons, their status, and periods of starts.

Starting Cron Job from cPannel

If you log into cPannel you can start a cron job also. When you enter cPannel you should find the Advanced setting. There is a Cron Job setting button in this field.In the Cron job field, you need to leave your email. You will receive emails every time the cron job runs. In these emails, you’ll see how cron job run in your Magento store.Cron Job in Magento setupOn the cron job page in cPannel, you can add a new cron job and set the scheduler for cron. You choose how often cron job is to run, see the current cron jobs.

How to run Cron Job in Magento using file cron.sh or cron.php

There are cron.sh and cron.php scripts in the folder where your Magento located.In crontab you should write the next command10,25,40,55 * * * * sh /www/html/magento/cron.shsh /www/html/magento/cron.sh is the root folder your Magento installation.10,25,40,55 * * * * means that cron will start in 10, 25, 40 and 55 minute every hour..If you use use command */5 * * * * sh /www/html/magento/cron.sh cron will star every 5 minuteIn cron command you see five stars (*). Each star mean the period. In the table below you can see the stars meaning.setup Cron Job in MagentoThere are five stars in command. Each means a period of time in which cron should workNote that when we use the exact time for the cron, then * is not needed, if we set the launch period, then the * must be left.

In conclusion

This guide will definitely help you to start a cron job in Magento. If you still have some issues leave your questions in the comments below. We hope, that this guide will definitely help you to get how to run a cron job in Magento.

Related posts

MAGENTO
Magento in 2021 and Beyond: Magento Experts Share Predictions
Two experts from the NEKLO ecommerce team, contributing to our expertise as a Magento development company, share their thoughts on the potential of their favorite and one of the most popular ecommerce platforms on the market today. Find below expert quotes about Magento development, Magento services, and Magento partners from our Senior Magento Developer Michail…
author's avatar
Nadya Bakhur
Researcher, Content Writer
TECHNICAL
App Development Cost Breakdown: How Much Does It Cost to Design an App
There is a wide price range within custom software development and mobile app development today. This article focuses on the factors that affect the final average app development cost of a project. It will help you negotiate the price with any application development specialist googled through the “app developers near me” query and understand how…
author's avatar
Dasha Korsik
Content Team Lead
TECHNICAL
Build vs Buy Software: Pros & Cons of Custom Software Development
In today’s digital world, almost every business, regardless of its size or niche, needs a software solution to manage data, improve customer experience and update internal processes. A dizzying array of business software programs is already available on the market and there is always a prospect to build a custom software solution. “Buy vs build…
author's avatar
Nadya Bakhur
Researcher, Content Writer
INSIGHTS
NEKLO DIGEST #5: Is Dropshipping Worth It? Ecommerce Strategy Tips
Starting an ecommerce activity seems the right choice for many business owners today. However, many of them are puzzled about existing ecommerce business ideas and aren’t sure which one to follow.  When the choice is difficult, they come to our ecommerce development company for a custom software solution or professional consultancy. Additionally, we provide the…
author's avatar
Dasha Korsik
Content Team Lead
MAGENTO
Magento Big Data Solutions: How Big Data Projects Change eCommerce?
If you rely on data and analytics, the chance you will be disappointed is minimized. In this article, we’re going to overview why and how companies use big data within their ecommerce initiatives. What’s more, NEKLO team wants to make it certain for you that one of the key benefits of merging Magento web development…
author's avatar
Nadya Bakhur
Researcher, Content Writer