-2

I want to run cron job in following manner

00:00 00:50 01:40 02:30 and so on

how can i setup cron tab so it works like this

Arslan Ali
  • 231
  • 1
  • 4
  • 11
  • to improve your experience on SO please read [how to ask](https://stackoverflow.com/help/how-to-ask) an [On Topic question](https://stackoverflow.com/help/on-topic), and the [Question Check list](https://meta.stackoverflow.com/questions/260648/stack-overflow-question-checklist) and [the perfect question](http://codeblog.jonskeet.uk/2010/08/29/writing-the-perfect-question/) and how to create a [Minimal, Complete and Verifiable Example](http://stackoverflow.com/help/mcve) and [take the tour](http://stackoverflow.com/tour) – RiggsFolly Feb 14 '19 at 14:05

1 Answers1

-2

You should try this:

$schedule->command('import:production')->cron('*/50 * * * * *')->withoutOverlapping();
AddWeb Solution Pvt Ltd
  • 21,025
  • 5
  • 26
  • 57
  • Already tried it, it will run in this way 00:50,01:00,01:50,02:00,02:50 .... problem is that its also running every hour, which is not desired Also you have used 6 values, originally it should be 5 only – Arslan Ali Feb 15 '19 at 14:35
  • Just set it to 50 instead of */50 – Anonymous Nov 26 '20 at 02:54