Answer the question
In order to leave comments, you need to log in
How to run a console command correctly so that it runs from a certain time at a certain interval?
Good day. The site is developed on yii2 advance. In console/config, the file schedule.
I prescribe in it
$schedule->command('моя команда')->cron('*/10 7-18 * * *');
Answer the question
In order to leave comments, you need to log in
In console/config - schedule file
$schedule->command('моя команда')->cron('*/10 7-18 * * *');
$schedule
? Judging by the syntax, there is an object, but which one?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question