Magento 2 Cron注意 - 逗号分隔值
我正在尝试设置一份Cron工作,以便每个月下午4:00 在上跑步。
我想到了:
https://crontab.guru/#00_16_ /25,/26,/27,/27,/28,/29, /30,/31 _ _7
00 16 */25,*/26,*/27,*/28,*/29,*/30,*/31 * 7
我已经将其放入crontab.xml(以 */1 * * * * * * *)
<group id="default">
<job instance="Company\DeleteOldProducts\Cron\DeleteOldProducts" method="execute" name="delete_old_products">
<schedule>00 16 */25,*/26,*/27,*/28,*/29,*/30,*/31 * 7</schedule>
</job>
</group>
为没有生成Cron任务。
Magento 2是否接受此逗号分开的符号?
我环顾四周,在exception.log或system.log或debug.log中看不到任何错误。
有什么想法吗?
I'm trying to set up a cron job to run on last Sunday of each month at 4:00PM.
I came up with this:
https://crontab.guru/#00_16_/25,/26,/27,/28,/29,/30,/31__7
00 16 */25,*/26,*/27,*/28,*/29,*/30,*/31 * 7
I've put this into crontab.xml (which was running before with */1 * * * *)
<group id="default">
<job instance="Company\DeleteOldProducts\Cron\DeleteOldProducts" method="execute" name="delete_old_products">
<schedule>00 16 */25,*/26,*/27,*/28,*/29,*/30,*/31 * 7</schedule>
</job>
</group>
This, for some reason does not generate the cron tasks.
Does Magento 2 accept this comma separated notation?
I've looked around and don't see any errors in exception.log or system.log or debug.log.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
woops,我只需要等待更长的时间。看起来它接受了这份工作。
cron作业 - 使用了当前日期进行测试,这就是为什么5月6日
Woops, I just had to wait a bit longer. Looks like it accepted the job.
cron job created - used a current date for testing that's why its May 6