Skip to content

Commit

Permalink
increase whmcs delays
Browse files Browse the repository at this point in the history
  • Loading branch information
coddmeistr committed Jan 27, 2025
1 parent 883566d commit a238950
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/billing/cron_expired_balance_invoices_term.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (s *BillingServiceServer) DeleteExpiredBalanceInvoicesCronJob(ctx context.C
log.Error("Failed to terminate expired balance invoice", zap.Error(err))
continue
}
delaySeconds(20)
delaySeconds(61)
count++
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/billing/cron_renew_invoices_issuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ func (s *BillingServiceServer) createRenewalInvoice(ctx context.Context, log *za
log.Error("Error creating invoice", zap.Error(err))
return fmt.Errorf("error creating invoice: %w", err)
}
delaySeconds(61)
delaySeconds(301)

log.Info("Created invoice", zap.String("uuid", resp.Msg.GetUuid()), zap.Int("item_count", len(inv.Items)))
return nil
Expand Down

0 comments on commit a238950

Please sign in to comment.