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

2 Answers 2

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.

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

2
  • This is for every hour, I need for every 4 hours
    – Milos
    Aug 15, 2014 at 12:11
  • ok ,i will give you .....
    – Amit Bera
    Aug 15, 2014 at 12:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.