Kernel_010117.php 2.27 KB
<?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\bulkServerUpload',
		'App\Console\Commands\bulkServerUpload_1',
		'App\Console\Commands\bulkServerUpload_2',
                'App\Console\Commands\bulkServerUpload_3',
                'App\Console\Commands\bulkServerUpload_4',
		//'App\Console\Commands\bulkServerUpload_5',
		'App\Console\Commands\InsertCrmArchive',
                'App\Console\Commands\DeleteCrmcalls',
	];

	/**
	 * 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('bulkServerUpload')->everyMinute()->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping();




		$schedule->command('bulkServerUpload')->dailyAt('14:45')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping();
		$schedule->command('bulkServerUpload_1')->dailyAt('16:18')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping();
		$schedule->command('bulkServerUpload_2')->dailyAt('17:45')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping();
		$schedule->command('bulkServerUpload_3')->dailyAt('19:15')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping();
		$schedule->command('bulkServerUpload_4')->dailyAt('20:45')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping();
		//$schedule->command('bulkServerUpload_5')->dailyAt('22:15')->appendOutputTo(storage_path()."/reason/bulkserver.txt")->withoutOverlapping();

		$schedule->command('InsertCrmArchive')->hourly()->withoutOverlapping();
                $schedule->command('DeleteCrmcalls')->hourly()->withoutOverlapping();

		$schedule->command('DailyLogout')->dailyAt('14:30')->withoutOverlapping();

	}

}