Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

job: auto-update queryservice allowlist #870

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

AndrewKostka
Copy link
Contributor

@AndrewKostka AndrewKostka commented Oct 17, 2024

Bug: T375384

@@ -57,6 +58,8 @@ protected function schedule(Schedule $schedule): void
$schedule->job(new UpdateWikiSiteStatsJob)->dailyAt('19:00');

$schedule->job(new SendEmptyWikiNotificationsJob)->dailyAt('21:00');

$schedule->job(new UpdateQueryserviceAllowList)->weeklyOn(Schedule::MONDAY, '01:00');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can run this even nightly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could, but I don't think we plan on restarting the query service more than once a week.

{
public function handle(Client $k8s)
{
$allowList = implode(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

took me a moment to parse this on a friday afternoon but this is very elegant! 💖

@AndrewKostka AndrewKostka merged commit 8dedb0e into main Oct 28, 2024
6 checks passed
@AndrewKostka AndrewKostka deleted the queryservice-automate-allowlist branch October 28, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants