I need to make the task in Cron run every n minutes, and n can be from 1 to infinity. This number is indicated in the variable in Laravel, and it is necessary that any number could be entered and everything worked. How can this be written as a Cron expression (* * * * *)?

  • */5 * * * * - every five minutes - Manitikyl
  • 1. where does Laravel? 2. @Manitikyl */5 * * * * does not work for the case до бесконечности , if the vehicle wants 200 minutes. TC, why indefinitely? - Total Pusher
  • Do you need to infinity? It seems to me easier then to make blanks than to write a generator. - Manitikyl
  • @Manitikyl Well, not to infinity, but, say, 90 minutes. I tried to do what you propose, but the tasks were completed in an hour, not one and a half - Vitali
  • duplicate: stackoverflow.com/q/833346/178576 - aleksandr barakin

0