Type
magento2-module
Magento 2 Cron Schedule Extension
magento2-module
proprietary
None
None
None
None
None
Magento 2 Cron Schedule from Mageplaza is one of the most utility which helps you to execute tasks with no effort from the admin panel. The extension prevents errors from popping up, avoid interruption as well as create a smooth flow for your store’s performance.
Q: I got an error: Mageplaza_Core has been already defined
A: Read solution here
Q: I would like to locate our Fanpage on any places on the sites. Is it possible?
A: Yes. Please create Facebook Widget from Block section from the backend, then embed it on any CMS page or block.
Q: What can I do with Cron Jobs Grid?
A: You can view all available cron jobs details at the Cron Jobs Grid, including cron job code, group name, activation status, instance classpath, job method, time schedule, and action. Also, you can edit quickly the cron jobs you created from this grid. Besides, the extension supports mass actions such as delete, change status, and execute.
Q: What can I see at Cron Jobs Log?
A: You can view all states of any cron tasks. You will be well-notified when a cron task gets Error, Missed, Pending, Running, Success. If the process has the problems, the log will display a message containing all error details, and you can identify and resolve to make it run properly.
Q: Can I schedule to clear the log frequently?
A: Yes, of course. At the admin backend, you can define the time to clean up the log frequently such as every 10 minutes, every 30 minutes, etc. to keep the record neat.
Q: What are the benefits of Cron Jobs Timetable?
A: Cron Jobs Timetable gives you the power to manage cron tasks visually in chronological order. Color bars are used to mark the scheduled time and notice the state of running cron jobs, for example, red for errors, blue for pending, purple for running, green for success. When hovering over a particular bar, a detail box will appear for you to see more details.
Q: When there are errors, how can I know?
A: There will be a notification about cron errors sent to you quickly if you turn on Backend Notification and Email Notification.
Q: Can I run cron jobs manually?
A: Yes, at the Cron Jobs Grid, please choose cron jobs and click on Execute at Action box.
## 3. How to install Cron Schedule extension for Magento 2
Install via composer (recommend)
Run the following command in Magento 2 root folder:
composer require mageplaza/module-cron-schedule
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
From the backend, store admins can track and manage the scheduled cron jobs from a separate listing grid. It is flexible to access the grid to monitor cron jobs details including cron job code, group name, activation status, instance classpath, job method, time schedule, and action. The cron jobs grid provides an overview of all available cron tasks. Admins can make a quick edit to the cron jobs created before from this grid.
Admins can also perform mass actions on cron tasks or on selected ones, including deleting, changing the status of cron tasks without any difficulties.
Another outstanding feature of Cron Schedule is that it allows recording and updating all status of a cron task in History Log.
Store admins will be notified by the Cron Jobs Log when there are action states, including Error, Missed, Pending, Running, and Success. If there are any problems, a message showing all details of errors will be displayed on the log. Admins can reconfigure to solve the problem.
It is necessary to arrange and display cron jobs with different schedule time and status in an easy-to-follow and logical way, which helps store admins to manage the cron jobs grid easily. Cron Timetable and Table wisely display all cron tasks in chronological order with fully setting dates and time of each cron task.
Notably, each of the cron tasks is set up along with a specific color bar showing the visual status, which makes it easier for store admins to identify the state. For example, red color illustrates errors, blue color for pending, purple for running, and green for success. In case, tasks affect each other; admin can easily define and timely modify them.
Cron jobs can be run smoothly by applying "Execute" at the Action box. Manual execution makes the process of updating cron tasks more active and straightforward for store admins.
Remove, execute, or change the status of various cron jobs at once
Enable/ Disable notifications at the backend if cron get errors or missed out
Enable/ Disable email notification to admin when cron jobs get errors or missed out
Schedule auto-send emails
Set time to automatically clear up the log (such as every 30 minutes, etc.)
View and manage cron jobs at various store views at Cron Jobs grid or timetable.
From the Admin Panel, go to System > Cron Schedule > Configuration
From the Admin Panel, go to System > Cron Schedule > Configuration
, select General
When admin click on Here will be directed to the Cron Jobs Log page.
Send To:
Email Template:
Marketing > Email Templates
, select Add New Templates to create a notification email templateSchedule For Email: Choose the time to send an email error message after cron jobs finish:
There are three methods to run Cron manually:
- Method 1: Run the command: php bin/magento cron:run
- Method 2: Click Run All Cron Jobs at Manage Cron Jobs Page.
- Method 3: Tick to choose the Cron Jobs you want to check at Manage Cron Jobs table, then choose Action = Execute.
Note:
First time running Cron, all the cron schedules are in Pending Status. You can view them at cron_schedule table or Cron Jobs Log Page.
The second time running Cron, there are two cases:
You can view or change the Missed Time by:
From the Admin Panel, go to Stores > Configuration > Advanced > System > Cron
, change it in the field Missed If Not Run Within
From the Admin Panel, go to System > Cron Schedule > Manage Cron Jobs
From the Admin Panel, go to System > Cron Schedule > Manage Cron Jobs
, select Add New
In which:
Status: Select Enable for Cron Jobs to work.
Instance Classpath:
Mageplaza\CronSchedule\Model\Test
Job Method:
Time Schedule:
System > Cron Schedule > Cron Jobs Log
From the Admin Panel, go to System > Cron Schedule > Cron Jobs Timetable
This is the Timetable display page of the Cron Jobs Log page. It plays the role of a chart report helping admin to know the results of the cron running process.
Select Time: Select the time to display Cron Jobs.
From June 23th 2019, this extension is licensed under the MIT License
Explore more extensions: - Magento 2 Promo Bars - Magento 2 Image Optimizer Free - Magento 2 Custom Order Number - Magento 2 Return Merchandise Authorization - Magento 2 Google Analytics Module - Magento 2 Pre Order Product - Magento 2 Custom Order Grid - Magento 2 Import Export Categories - Magento 2 Import Export CMS Pages