Skip to content

Commit 92b976e

Browse files
author
water
committed
fix: skip consumption billing worker when DisableConsumptionBilling is set (#32059)
1 parent 6144400 commit 92b976e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

vault/consumption_billing.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ func (c *Core) setupConsumptionBilling(ctx context.Context) error {
4848
}
4949
c.consumptionBillingLock.Unlock()
5050

51+
if c.billingConfig.DisableConsumptionBilling {
52+
c.logger.Warn("consumption billing is disabled by configuration, billing metrics worker will not be started")
53+
return nil
54+
}
55+
5156
c.postUnsealFuncs = append(c.postUnsealFuncs, func() {
5257
c.consumptionBillingMetricsWorker(ctx)
5358
// Start the perf standby plugin counts worker if this is a perf standby

0 commit comments

Comments
 (0)