mise en place schedulers (crons laravel)

This commit is contained in:
bastien
2026-07-05 01:40:31 +02:00
parent c347796c29
commit 80085a94d3
2 changed files with 18 additions and 3 deletions
+4
View File
@@ -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
View File
@@ -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();