Project

General

Profile

Actions

Bug #26

closed
TB GO

Nightly invoice run times out when a tenant has more than 200k line items

Bug #26: Nightly invoice run times out when a tenant has more than 200k line items

Added by Tomas Brandt 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Urgent
Assignee:
Category:
Invoicing
Target version:
Start date:
07/20/2026
Due date:
% Done:

100%

Estimated time:
4:00 h

Description

What happens

nightly invoice run times out when a tenant has more than 200k line items — reproduced on the current Billing Q3 build.

Steps to reproduce

  1. Sign in as a tenant on the standard plan.
  2. Open the affected screen and repeat the action three times in a row.
  3. Watch the response, the log line and the metric named in the comments below.

Expected

The operation completes once, the log carries a single correlated request id, and the metric moves
by exactly one.

Actual

The behaviour in the title: every time on a cold cache, and roughly one run in four on a warm one.
Found while working through the Invoicing backlog; the correlation id is available on request.

Actions

Also available in: PDF Atom