php - Schedule job in laravel time interval -


i have 3 schedule job every hour in kernel.php below:

$schedule->command('get:twitter')->cron('* 1 * * * *'); $schedule->command('get:facebook')->cron('* 1 * * * *'); $schedule->command('get:googleplus')->cron('* 1 * * * *'); 

i want run 3 schedule in time interval below:

$schedule->command('get:twitter')->cron('* 1 * * * *');//after 1 hour $schedule->command('get:facebook')->cron('30 1 * * * *');//after 1.30 hour $schedule->command('get:googleplus')->cron('45 1 * * * *');//after 1.45 hour 

is possible in laravel 5.1

there no out of box can this:

// every hour $schedule->command('get:twitter')->hourly();  // every 1 , half hours $schedule->command('get:facebook')->cron('0 0,3,6,9,12,15,18,21 * * * *'); $schedule->command('get:facebook')->cron('30 1,4,7,10,13,16,19,22 * * * *');  // every 2 hours @ x.15 minutes (0.15, 2.15, 4.15 etc) $schedule->command('get:googleplus')->cron('15 */2 * * * *'); 

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -