Skip to content

Commit cb12430

Browse files
committed
chore(scripts): flag recover-stuck-runs raw TaskRun read for table cutover
The recovery script joins TaskRunExecutionSnapshot to TaskRun in raw SQL, so it is the one TaskRun read not routed through the run store. Add a note to revisit it at table cutover.
1 parent f59abe7 commit cb12430

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/recover-stuck-runs.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,9 @@ async function main() {
187187

188188
console.log(`📊 Found ${runIds.length} runs in currentConcurrency set`);
189189

190-
// Query database for latest snapshots and queue info of these runs
190+
// Query database for latest snapshots and queue info of these runs.
191+
// NOTE: raw join of TaskRunExecutionSnapshot to TaskRun, the one TaskRun read not behind
192+
// RunStore (a join, not a by-id read, in an ops script). Revisit at table cutover.
191193
const runInfo = await prisma.$queryRaw<
192194
Array<{
193195
runId: string;

0 commit comments

Comments
 (0)