Answer the question
In order to leave comments, you need to log in
What will be the cron algorithm?
Laravel, ubuntu
I need to set up 2 cron startup tasks:
The first task should run 2 times a month: on the 5th and 20th at 9 am.
The second task is 2 times a week: on Tuesday and Friday at 9 am.
this is it? I can only check in production cron('0 9 5,20 * *')
cron('0 9 * * 2,5')
Answer the question
In order to leave comments, you need to log in
Well, the schedule matches, yes. I only recommend to slightly shift one of the tasks in time, because. sometimes (~7 times a year) Tuesday or Friday will coincide with the 5th or 20th of the month and two tasks will run at the same time - there may be side effects.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question