File tree 1 file changed +14
-3
lines changed
apps/webapp/app/v3/services
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -78,16 +78,27 @@ export class ReplayTaskRunService extends BaseService {
78
78
environmentId : authenticatedEnvironment . id ,
79
79
} ) ;
80
80
81
+ //get the queue from the original run, so we can use the same settings on the replay
82
+ const taskQueue = await this . _prisma . taskQueue . findFirst ( {
83
+ where : {
84
+ runtimeEnvironmentId : authenticatedEnvironment . id ,
85
+ name : existingTaskRun . queue ,
86
+ } ,
87
+ } ) ;
88
+
81
89
const triggerTaskService = new TriggerTaskService ( ) ;
82
90
return await triggerTaskService . call (
83
91
existingTaskRun . taskIdentifier ,
84
92
authenticatedEnvironment ,
85
93
{
86
94
payload : parsedPayload ,
87
95
options : {
88
- queue : {
89
- name : existingTaskRun . queue ,
90
- } ,
96
+ queue : taskQueue
97
+ ? {
98
+ name : taskQueue . name ,
99
+ concurrencyLimit : taskQueue . concurrencyLimit ?? undefined ,
100
+ }
101
+ : undefined ,
91
102
concurrencyKey : existingTaskRun . concurrencyKey ?? undefined ,
92
103
test : existingTaskRun . isTest ,
93
104
payloadType : payloadPacket . dataType ,
You can’t perform that action at this time.
0 commit comments