3

Can you tell me expression for magento cron schedule to run script every 4 hours - every day. I tried:

<schedule><cron_expr>0 */4 * * *</cron_expr></schedule>

But job is not showing in cron_schedule table

Amasty
  • 6,508
  • 1
  • 22
  • 59
Milos
  • 187
  • 3
  • 6

2 Answers2

4

Try

0 0,4,8,12,16,20 * * *

Note, if you do not see the cron in the table, it's not an error, because the scheduler creates the record with some delay.

Amasty
  • 6,508
  • 1
  • 22
  • 59
0
0 */4 * * *

change to

25 */4 * * *

this code means cron job will run at 12.00, 1.00 and so on. if you want changed to time 12.30 ,1.30 and so on then change to 0 to 30

https://stackoverflow.com/questions/21374844/run-an-magento-function-cron-at-every-hour

Amit Bera
  • 77,456
  • 20
  • 123
  • 237