We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8211ee6 commit a8aea9fCopy full SHA for a8aea9f
coderd/notifications/reports/generator.go
@@ -42,7 +42,7 @@ func NewReportGenerator(ctx context.Context, logger slog.Logger, db database.Sto
42
// Acquire a lock to ensure that only one instance of the generator is running at a time.
43
ok, err := tx.TryAcquireLock(ctx, database.LockIDNotificationsReportGenerator)
44
if err != nil {
45
- return err
+ return xerrors.Errorf("failed to acquire report generator lock: %w", err)
46
}
47
if !ok {
48
logger.Debug(ctx, "unable to acquire lock for generating periodic reports, skipping")
0 commit comments