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