Runs the scheduled rotation of one realm: a next key for every unit lacking one, and every unit whose next key has been published for a whole interval promoted. A pinned unit is left alone.
the realm id
Optional
optional scheduler context: nowMs, stillOwner, trigger
nowMs
stillOwner
trigger
a promise of { minted, rotated, generation }, with abandoned when the node stopped owning the job midway
{ minted, rotated, generation }
abandoned
Runs the scheduled rotation of one realm: a next key for every unit lacking one, and every unit whose next key has been published for a whole interval promoted. A pinned unit is left alone.