Is this the correct way for setting a cron job to run every 3 hours? After setting it this way, cron is executing the command every minute.
It is a wildcard for every part of the cron schedule expression. So * * * * * means every minute of every hour of every day of every month and every day of the week .
Show activity on this post. ->cron('0 */12 * * *'); This cron will run the scheduler at every 12 hours.
Meaning of cron expression 0 * * * * *? I think it means the scheduler is expected to run every seconds.
Change Minute to be 0
. That's it :)
Note: you can check your "crons" in http://cronchecker.net/
Example
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With