Skip to content

Commit f60b0a9

Browse files
committed
remove debug leftover
1 parent ceb084c commit f60b0a9

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

apps/service/src/temporal/workflows/pipeline-backfill.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ export interface PipelineBackfillResult {
1414

1515
const BACKFILL_CONTINUE_AS_NEW_THRESHOLD = 200
1616

17-
// DEBUG: hard cap on activity iterations per workflow. Remove once the
18-
// sheets-destination looping bug is resolved.
19-
const DEBUG_MAX_OPERATIONS = 100
20-
2117
/**
2218
* Child workflow that runs a backfill from start to finish.
2319
* Calls pipelineSync in a loop until has_more=false, then returns the final eof.
@@ -52,15 +48,6 @@ export async function pipelineBackfill(
5248
return { eof: result.eof }
5349
}
5450

55-
if (operationCount >= DEBUG_MAX_OPERATIONS) {
56-
log.warn('DEBUG_MAX_OPERATIONS reached — stopping backfill early', {
57-
pipelineId,
58-
operationCount,
59-
has_more: eof.has_more,
60-
})
61-
return { eof }
62-
}
63-
6451
if (operationCount >= BACKFILL_CONTINUE_AS_NEW_THRESHOLD) {
6552
await continueAsNew<typeof pipelineBackfill>(pipelineId, { syncState })
6653
}

0 commit comments

Comments
 (0)