Skip to content

Commit

Permalink
feat: Automate roster updates at start of each quarter
Browse files Browse the repository at this point in the history
  • Loading branch information
CalumTowers committed Dec 21, 2024
1 parent ef2cebd commit 9818bbf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Console;

use Bugsnag\BugsnagLaravel\Commands\DeployCommand as BugsnagDeployCommand;
use Carbon\Carbon;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use Spatie\ScheduleMonitor\Models\MonitoredScheduledTaskLogItem;
Expand Down Expand Up @@ -75,6 +76,14 @@ protected function schedule(Schedule $schedule)
$schedule->command('import:division-members')
->twiceDaily(2, 14)
->graceTimeInMinutes(15);

// === By Quarter === //
$schedule->command('roster:update', [
Carbon::now()->subMonths(3),
Carbon::now()
])
->quarterly()
->doNotMonitor();
}

/**
Expand Down

0 comments on commit 9818bbf

Please sign in to comment.