Kernel.php
1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
'App\Console\Commands\KstychDaily',
'App\Console\Commands\KstychPAMI',
'App\Console\Commands\KstychPAGI',
'App\Console\Commands\DailyLogout',
'App\Console\Commands\InsertCrmArchive',
'App\Console\Commands\DeleteCrmcalls',
'App\Console\Commands\ClearDiallines',
'App\Console\Commands\HangupCall',
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('KstychDaily')->daily()->withoutOverlapping();
$schedule->command('InsertCrmArchive')->everyTenMinutes()->withoutOverlapping();
$schedule->command('DeleteCrmcalls')->dailyAt('02:30')->withoutOverlapping();
// added cron for do diallines free by YASHWANT on 29062017
$schedule->command('ClearDiallines')->everyMinute()->withoutOverlapping(); // ->appendOutputTo(storage_path()."/output.txt");
$schedule->command('HangupCall')->everyTenMinutes()->withoutOverlapping();
}
}