- IMAP-Abruf jede Minute (webklex/php-imap, ohne PHP-imap-Erweiterung) oder signierter Push von n8n - Parser für Buchungs-, Storno- und Anfrage-Mails (de/en), Buchungsnummer, An-/Abreise - Erkannte Buchungen werden sofort gesperrt und an handgepflegte Portale weitergegeben; Kalender-Abgleich übernimmt bzw. ersetzt Mail-Sperren - Unklare Mails: Prüf-Mail + Admin-Liste Portal-E-Mails mit Aktion Sperre anlegen - Überwachung des Postfachs in Monitor und /health/sync Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
<?php
|
|
|
|
use App\Actions\AnonymizeGuests;
|
|
use App\Actions\MonitorChannels;
|
|
use App\Actions\RemindChannelTasks;
|
|
use App\Actions\RequestReviews;
|
|
use Illuminate\Support\Facades\Schedule;
|
|
|
|
Schedule::command('bookings:expire-holds')->everyFiveMinutes()->withoutOverlapping();
|
|
|
|
Schedule::command('channels:sync')->everyFiveMinutes()->withoutOverlapping(10);
|
|
|
|
Schedule::command('channels:fetch-mail')->everyMinute()->withoutOverlapping(5);
|
|
|
|
Schedule::call(fn (MonitorChannels $monitorChannels) => $monitorChannels->handle())
|
|
->name('channels:monitor')
|
|
->everyFifteenMinutes()
|
|
->withoutOverlapping();
|
|
|
|
Schedule::call(fn (RemindChannelTasks $remindChannelTasks) => $remindChannelTasks->handle())
|
|
->name('channels:remind-tasks')
|
|
->everyFifteenMinutes()
|
|
->withoutOverlapping();
|
|
|
|
Schedule::call(fn (RequestReviews $requestReviews) => $requestReviews->handle())
|
|
->name('reviews:request')
|
|
->dailyAt('10:00')
|
|
->withoutOverlapping();
|
|
|
|
Schedule::call(fn (AnonymizeGuests $anonymizeGuests) => $anonymizeGuests->handle())
|
|
->name('guests:anonymize')
|
|
->monthlyOn(1, '03:00')
|
|
->withoutOverlapping();
|