fix(schedule): remove stale horizon snapshot (#293)

## Summary
- remove the stale `horizon:snapshot` scheduled command that still runs
in production
- add a regression test to ensure scheduled commands do not include
Horizon snapshot
- keep production aligned with the current `queue:work` worker setup
This commit is contained in:
Víctor Falcón 2026-04-16 07:35:33 +01:00 committed by GitHub
parent c90e8166bf
commit b438a1c73b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 1 deletions

View File

@ -3,7 +3,6 @@
use Illuminate\Support\Facades\Schedule;
Schedule::command('demo:reset')->twiceDaily();
Schedule::command('horizon:snapshot')->everyFiveMinutes();
Schedule::command('budgets:generate-periods')->daily();
Schedule::command('banking:sync')->everySixHours();
Schedule::command('banks:check-logos')->weekly();

View File

@ -0,0 +1,16 @@
<?php
use Illuminate\Console\Scheduling\Event;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schedule;
test('scheduled commands do not include horizon snapshot', function () {
Artisan::call('schedule:list');
$commands = collect(Schedule::events())
->map(fn (Event $event): string => $event->command)
->filter();
expect($commands)->each->not->toContain('horizon:snapshot');
expect($commands->implode("\n"))->not->toContain('horizon:snapshot');
});