Files
triggerdotdev--trigger.dev/scripts
Dan Sutton 7c5f81b5c5 chore(run-store,scripts): harden cross-table reads for a future v2 copy window
Forward-looking robustness:
- recover-stuck-runs joins TaskRun UNION (not UNION ALL) task_run_v2, so if a
  later copy step leaves a run briefly in both tables under the same id the
  identical clones collapse to one row and DISTINCT ON stays unambiguous.
- Document that the findRuns "legacy" scope hint is for non-id predicates; an id
  read already routes by format, so the hint is redundant there (and a
  KSUID-only id predicate scoped legacy correctly returns nothing).
2026-06-22 21:21:59 +01:00
..