Skip to main content
9 events
when toggle format what by license comment
Jan 20, 2022 at 9:07 comment added Paul_Pedant @nativemash So it runs at 00:00, 05:00, 10:00 .. on the first day, and 01:00, 06:00, 11:00 .. on the second day ? Cron cannot do that. Your php code contains its own timing constraints, or waits for some external event, and skips the missing cron events itself. Maybe it runs for around 4.5 hours, and refuses to allow two copies of itself to run simultaneously. Test by making the command part: date >> /tmp/test_x.txt && php /project/yii daily/order. Then you can see cron log each hourly execution, and then check to see php running (or not) in top.
Jan 20, 2022 at 8:58 comment added Paul_Pedant @elmclose A step of /1 is the default anyway. A field may be an asterisk, which always stands for first-last which for hour is 0-23. If this is needed for hour, then you also need */1 for day of month.
Jan 20, 2022 at 5:59 comment added nativemash @Paul_Pedant It runs every five hours without starting over.
Jan 19, 2022 at 14:11 comment added user492570 For hourly action the format should be 0 */1 * * *
Jan 19, 2022 at 9:19 comment added Paul_Pedant Test the scheduling separately with 0 * * * * date >> /tmp/test_x.txt. Also "every 5 hours": does it start over at 0:00 every midnight, or does it run at 01:00 the second day (i.e. strict 5-hour intervals), which would indicate some timer other than cron.
Jan 19, 2022 at 6:29 history edited nativemash CC BY-SA 4.0
deleted 173 characters in body
Jan 19, 2022 at 5:08 answer added waltinator timeline score: -1
S Jan 19, 2022 at 4:51 review First questions
Jan 19, 2022 at 9:42
S Jan 19, 2022 at 4:51 history asked nativemash CC BY-SA 4.0