Skip to content

Commit 101c182

Browse files
authored
fix: update backfill export query to include transactions in todo, should_retry and failed status (#603)
* fix: update backfill export script to include transactions in pending, todo, should_retry status * updates * updates
1 parent e58e02a commit 101c182

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

charts/langsmith/scripts/support_queries/postgres/pg_usage_traces_backfill_export.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- This query exports all pending trace count transactions
1+
-- This query exports all unreported trace count transactions
22
-- for local sources. It also sets backfill_id to a common random UUID for tracking
33
-- and sets backfilled_at to the current timestamp.
44

@@ -12,7 +12,7 @@ backfill_txns AS (
1212
SET backfill_id = backfill_info.backfill_id,
1313
backfilled_at = backfill_info.backfilled_at
1414
FROM backfill_info
15-
WHERE tc.status = 'pending'
15+
WHERE tc.status IN ('pending', 'todo', 'should_retry', 'failed')
1616
AND tc.source = 'local'
1717
RETURNING *
1818
)

0 commit comments

Comments
 (0)