Skip to content

Commit 47ad588

Browse files
committed
Only allow final states to be used with this service
1 parent de77cc0 commit 47ad588

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ import { type PrismaClientOrTransaction } from "~/db.server";
33
import { marqs } from "~/v3/marqs/index.server";
44
import { BaseService } from "./baseService.server";
55
import { logger } from "~/services/logger.server";
6+
import { type FINISHED_STATUSES } from "~/components/runs/v3/TaskRunStatus";
67

78
type BaseInput = {
89
tx: PrismaClientOrTransaction;
910
id: string;
10-
status?: TaskRunStatus;
11+
status?: FINISHED_STATUSES;
1112
expiredAt?: Date;
1213
completedAt?: Date;
1314
};

0 commit comments

Comments
 (0)