Skip to content

Commit 894ac6e

Browse files
committed
fix(webapp): a replayed run keeps its original gate set, empty included
Passing undefined for a gateless original fell back to the task's current gates, so old runs replayed after new limits were added would silently gain them.
1 parent ad1fb33 commit 894ac6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/webapp/app/v3/services/replayTaskRun.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class ReplayTaskRunService extends BaseService {
144144
overrideOptions.concurrencyKey ?? existingTaskRun.concurrencyKey ?? undefined,
145145
gates: Array.isArray(existingTaskRun.gates)
146146
? (existingTaskRun.gates as Array<{ queue: string; concurrencyKey?: string }>)
147-
: undefined,
147+
: [],
148148
maxAttempts: overrideOptions.maxAttempts,
149149
maxDuration: overrideOptions.maxDurationSeconds,
150150
machine:

0 commit comments

Comments
 (0)