File tree Expand file tree Collapse file tree 1 file changed +6
-26
lines changed
apps/webapp/app/v3/services Expand file tree Collapse file tree 1 file changed +6
-26
lines changed Original file line number Diff line number Diff line change @@ -269,34 +269,14 @@ export class CompleteAttemptService extends BaseService {
269
269
if ( ! checkpointCreateResult ) {
270
270
logger . error ( "Failed to create checkpoint" , { checkpoint, execution : execution . run . id } ) ;
271
271
272
- /*
273
- "SYSTEM_FAILURE"
274
-
275
- Steps:
276
- 1. Updates the run to system failure
277
- 2. marqs ack
278
-
279
- Inputs:
280
- - taskRun: id, friendlyId
281
-
282
- Questions:
283
- - Nothing with OTEL events?
284
- - Why do we ack after the db update?
285
- */
286
-
287
- // Update the task run to be failed
288
- await this . _prisma . taskRun . update ( {
289
- where : {
290
- friendlyId : execution . run . id ,
291
- } ,
292
- data : {
293
- status : "SYSTEM_FAILURE" ,
294
- completedAt : new Date ( ) ,
295
- } ,
272
+ const finalizeService = new FinalizeTaskRunService ( ) ;
273
+ await finalizeService . call ( {
274
+ tx : this . _prisma ,
275
+ id : taskRunAttempt . taskRunId ,
276
+ status : "SYSTEM_FAILURE" ,
277
+ completedAt : new Date ( ) ,
296
278
} ) ;
297
279
298
- await marqs ?. acknowledgeMessage ( taskRunAttempt . taskRunId ) ;
299
-
300
280
return "COMPLETED" ;
301
281
}
302
282
You can’t perform that action at this time.
0 commit comments