Skip to content

Commit 5911ca9

Browse files
committed
fix: LockIDNotificationsReportGenerator
1 parent 159e6c7 commit 5911ca9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coderd/database/lock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const (
1010
LockIDEnterpriseDeploymentSetup
1111
LockIDDBRollup
1212
LockIDDBPurge
13-
LockIDReportGenerator
13+
LockIDNotificationsReportGenerator
1414
)
1515

1616
// GenLockID generates a unique and consistent lock ID from a given string.

coderd/notifications/reports/generator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func NewReportGenerator(ctx context.Context, logger slog.Logger, db database.Sto
4242
// Start a transaction to grab advisory lock, we don't want to run generator jobs at the same time (multiple replicas).
4343
if err := db.InTx(func(tx database.Store) error {
4444
// Acquire a lock to ensure that only one instance of the generator is running at a time.
45-
ok, err := tx.TryAcquireLock(ctx, database.LockIDReportGenerator)
45+
ok, err := tx.TryAcquireLock(ctx, database.LockIDNotificationsReportGenerator)
4646
if err != nil {
4747
return err
4848
}

0 commit comments

Comments
 (0)