mise en place schedulers (crons laravel)
This commit is contained in:
@@ -38,8 +38,12 @@ SESSION_DOMAIN=null
|
||||
BROADCAST_CONNECTION=log
|
||||
FILESYSTEM_DISK=local
|
||||
QUEUE_CONNECTION=redis
|
||||
# En production sans Redis (VPS Ansible) : database
|
||||
# QUEUE_CONNECTION=database
|
||||
|
||||
CACHE_STORE=redis
|
||||
# En production sans Redis (VPS Ansible) : database
|
||||
# CACHE_STORE=database
|
||||
# CACHE_PREFIX=
|
||||
|
||||
MEMCACHED_HOST=127.0.0.1
|
||||
|
||||
+14
-3
@@ -11,6 +11,17 @@ Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote');
|
||||
|
||||
Schedule::job(new CheckNoShowBookings)->everyFiveMinutes();
|
||||
Schedule::job(new RefreshOfflineMachines)->everyFiveMinutes();
|
||||
Schedule::job(new GenerateDailyStats)->dailyAt('01:00');
|
||||
Schedule::job(new CheckNoShowBookings)
|
||||
->everyFiveMinutes()
|
||||
->withoutOverlapping()
|
||||
->onOneServer();
|
||||
|
||||
Schedule::job(new RefreshOfflineMachines)
|
||||
->everyFiveMinutes()
|
||||
->withoutOverlapping()
|
||||
->onOneServer();
|
||||
|
||||
Schedule::job(new GenerateDailyStats)
|
||||
->dailyAt('01:00')
|
||||
->withoutOverlapping()
|
||||
->onOneServer();
|
||||
|
||||
Reference in New Issue
Block a user