HomePhabricator
Diffusion Comm 83950aa49edf

[keyserver] only run keyserver cron jobs if primary node besides geoip cron job

Description

[keyserver] only run keyserver cron jobs if primary node besides geoip cron job

Summary:
Given that we're running the keyserver on primary and secondary nodes, we don't want these cron jobs running for every node.

To ensure they only run once, we add a check for whether the node is primary to run cron jobs. The exception is keeping GeoIP updated.

Depends on D12846

Test Plan: flow check

Reviewers: ashoat, varun

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D12847

Details

Provenance
willAuthored on Jul 22 2024, 12:12 PM
Reviewer
ashoat
Differential Revision
D12847: [keyserver] only run keyserver cron jobs if primary node besides geoip cron job
Parents
rCOMM4e4b683f5de8: [keyserver] move `isPrimaryNode` to keyserver utils
Branches
Unknown
Tags
Unknown