Skip to content

Commit c444f2d

Browse files
committed
don't alter completion time when updating existing error
1 parent 98b4b1f commit c444f2d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

-6
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,13 @@ export type UpdateFatalRunErrorServiceOptions = {
88
reason?: string;
99
exitCode?: number;
1010
logs?: string;
11-
crashAttempts?: boolean;
12-
crashedAt?: Date;
13-
overrideCompletion?: boolean;
1411
errorCode?: TaskRunInternalError["code"];
1512
};
1613

1714
export class UpdateFatalRunErrorService extends BaseService {
1815
public async call(runId: string, options?: UpdateFatalRunErrorServiceOptions) {
1916
const opts = {
2017
reason: "Worker crashed",
21-
crashAttempts: true,
22-
crashedAt: new Date(),
2318
...options,
2419
};
2520

@@ -51,7 +46,6 @@ export class UpdateFatalRunErrorService extends BaseService {
5146
await finalizeService.call({
5247
id: taskRun.id,
5348
status: "CRASHED",
54-
completedAt: new Date(),
5549
error: {
5650
type: "INTERNAL_ERROR",
5751
code: opts.errorCode ?? TaskRunErrorCodes.TASK_RUN_CRASHED,

0 commit comments

Comments
 (0)