Magento接入CronjobManager

如果需要修改定时任务的执行时间,需要修改crontab.xml,并清缓存。

这里推荐一个插件:https://github.com/Ethan3600/magento2-CronjobManager

部署完成后,可以直接在后台修改crontab相关的配置,相当方便。

Installation

In your Magento2 root directory, you may install this package via composer:

composer require ethanyehuda/magento2-cronjobmanager

php bin/magento setup:upgrade

Features

Full Control Over All Scheduled Cron Jobs

Take command of all processes running on your Magento 2 instance. You will be able to manage all scheduled cron jobs, which means you have complete control over what tasks fire behind the scenes. An administrator will have the ability of scheduling, removing, editing, analyzing, and running any, and all cron jobs in the cron_schedule table.

Magento CronjobManager Dashboard

Informative Timeline

With the Timeline feature, you can see all scheduled tasks registered by Magento's scheduler queue, and quickly analyize important details pertaining to all your tasks. The timeline feature comes with dynamic scaling, live reloading, and tooltips to help you better interface with the scheduler.

Magento CronjobManager Timeline

Control Over Task Configurations

The configuration panel boasts a list of features including:

  • Cron expression editing

Grants access to changing the frequency of any cron job in Magento
This also allows you to disable cron jobs by removing the expression

  • System default configuration restore

Revert back to the system's default configuration

  • Schedule Now

Gives the ability to schedule any task immediately and in the background. Unlike the dispatch feature on the dashboard, which runs the cron on the forefront, scheduling a task from the configuration panel will allow the system to call it asynchronously

  • Cron Runner

Forces Magento to run the scheduler queue on command

Magento CronjobManager Configuration

Command Line Tools

Use the command line tools to run any cron job and view all tasks in the system:

For example: php bin/magento cronmanager:showjobs

Magento CronjobManager Command Line Tools

Email notifications

You can configure email addresses to be notified if a job has an error:

Magento CronjobManager Email Notification

And Much More...

The Cron Job Manager is an arsenal of tools that administrators can use to manipulate Magento's scheduler features. It's perfect for debugging obscure issues with custom or native processes (cron jobs) that run on Magento's scheduler queue. There are many use cases where administrators need to keep track of tasks and force them to behave in a specific way. The Cron Job Manager can do it all!

Magento CronjobManager More

版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/03/25/magento-access-cronjobmanager/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
打赏
海报
Magento接入CronjobManager
如果需要修改定时任务的执行时间,需要修改crontab.xml,并清缓存。 这里推荐一个插件:https://github.com/Ethan3600/magento2-CronjobManager 部署完成后,……
<<上一篇
下一篇>>
文章目录
关闭
目 录