Skip to content

Commit

Permalink
Merge pull request #1017 from biigle/patch-1
Browse files Browse the repository at this point in the history
Switch federated search tasks from hourly to daily
  • Loading branch information
mzur authored Dec 18, 2024
2 parents a2b95ab + c7480b4 commit 1ffbf0b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ protected function schedule(Schedule $schedule): void
}
})
->name('generate-federated-search-index')
// The requests to retrieve the federated search index are sent hourly at 05.
// This should not collide with this job to generate the index.
->hourlyAt(35)
// The requests to retrieve the federated search index are sent daily at
// 03:05. This should not collide with this job to generate the index.
->dailyAt('01:35')
->withoutOverlapping()
->onOneServer();

$schedule
Expand All @@ -46,10 +47,11 @@ protected function schedule(Schedule $schedule): void
->eachById([UpdateFederatedSearchIndex::class, 'dispatch']);
})
->name('update-federated-search-index')
// The jobs to generate the federated search index are run hourly at 35.
// The jobs to generate the federated search index are run daily at 01:35.
// This should not collide with this job to request the index from another
// instance.
->hourlyAt(05)
->dailyAt('03:05')
->withoutOverlapping()
->onOneServer();

// Insert scheduled tasks here.
Expand Down

0 comments on commit 1ffbf0b

Please sign in to comment.