Skip to content


Laravel scheduling exception

Laravel, scheduling1 min read

It caused by myself, I don't understood how does it work about cronjob acception time format.

So I got this error

To be notice, the error message prompts Invalid CRON field value 24 at position 1, the meaning is it could not support 24 value, so I checked my scheduling format.

Yes, it only supports to 23, the detail is following:

Next I traced underlying in class Cron\HoursField:

Huh, yes, it doesn't handle 24 to 00 , if you need scheduling job at 24:00, you need to do 00:00:

Anyway, it's my fault, I didn't make a scheduling at 00:00, I know it now, cheers!

© 2020 by Yish. All rights reserved.