Skip to content

Commit a8aea9f

Browse files
committed
failed-lock
1 parent 8211ee6 commit a8aea9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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
// Acquire a lock to ensure that only one instance of the generator is running at a time.
4343
ok, err := tx.TryAcquireLock(ctx, database.LockIDNotificationsReportGenerator)
4444
if err != nil {
45-
return err
45+
return xerrors.Errorf("failed to acquire report generator lock: %w", err)
4646
}
4747
if !ok {
4848
logger.Debug(ctx, "unable to acquire lock for generating periodic reports, skipping")

0 commit comments

Comments
 (0)