HomePhabricator
Diffusion Comm 4e4b683f5de8

[keyserver] move `isPrimaryNode` to keyserver utils

Description

[keyserver] move isPrimaryNode to keyserver utils

Summary: Moves isPrimaryNode into utils in anticipation of using it in determining whether to run cron jobs

Test Plan: exported COMM_NODE_ROLE and console logged in primary only code as primary and secondary. Confirmed expected behavior

Reviewers: ashoat, varun

Reviewed By: ashoat

Subscribers: tomek

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

Details

Provenance
willAuthored on Jul 22 2024, 12:07 PM
Reviewer
ashoat
Differential Revision
D12846: [keyserver] move `isPrimaryNode` to keyserver utils
Parents
rCOMMf1d9ec893762: [terraform] Avoid including Terraform state and secrets in keyserver Docker…
Branches
Unknown
Tags
Unknown