Files
fewo-stommer/routes/console.php
T
LarsandClaude Opus 5.5 1c757f7429 Erinnerungsabstand und taegliche/woechentliche Zusammenfassung einstellbar
System > Betrieb > Benachrichtigungen: offene Meldungen (Doppelbuchungen im
Postfach, Portal-Aufgaben) nur einmal oder alle 1/2/3/7 Tage erneut senden;
Tages- und/oder Wochenuebersicht mit waehlbarer Uhrzeit, Wochentag und Inhalt
(Postfach, Anfragen, Neues, An-/Abreisen, Zahlungen, Portale, Bewertungen).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 10:11:15 +01:00

58 lines
2.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
use App\Actions\AnonymizeGuests;
use App\Actions\MonitorChannels;
use App\Actions\RemindChannelTasks;
use App\Actions\RequestReviews;
use App\Actions\SendBookingReminders;
use App\Actions\SendDigests;
use App\Models\Tenant;
use App\Tenancy\TenantRunner;
use Illuminate\Support\Facades\Schedule;
/**
* Everything that acts on a landlord's data runs once per landlord (TenantRunner), so queries see the right
* rows and mail goes out with the right sender. Only the database backup stays global: one database, one dump.
*/
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 (TenantRunner $runner, MonitorChannels $monitorChannels) => $runner->each(fn () => $monitorChannels->handle()))
->name('channels:monitor')
->everyFifteenMinutes()
->withoutOverlapping();
Schedule::call(fn (TenantRunner $runner, RemindChannelTasks $remindChannelTasks) => $runner->each(fn () => $remindChannelTasks->handle()))
->name('channels:remind-tasks')
->everyFifteenMinutes()
->withoutOverlapping();
Schedule::call(fn (TenantRunner $runner, SendDigests $sendDigests) => $runner->each(fn (Tenant $tenant) => $sendDigests->handle($tenant)))
->name('digests:send')
->everyFifteenMinutes()
->withoutOverlapping();
Schedule::call(fn (TenantRunner $runner, SendBookingReminders $sendBookingReminders) => $runner->each(fn () => $sendBookingReminders->handle()))
->name('bookings:reminders')
->dailyAt('09:00')
->withoutOverlapping();
Schedule::call(fn (TenantRunner $runner, RequestReviews $requestReviews) => $runner->each(fn () => $requestReviews->handle()))
->name('reviews:request')
->dailyAt('10:00')
->withoutOverlapping();
Schedule::call(fn (TenantRunner $runner, AnonymizeGuests $anonymizeGuests) => $runner->each(fn () => $anonymizeGuests->handle()))
->name('guests:anonymize')
->dailyAt('03:00')
->withoutOverlapping();
// One database, one dump – across all landlords (see MANDANTEN-PLAN §5).
Schedule::command('backup:database')
->name('backup:database')
->dailyAt('02:30')
->withoutOverlapping();