We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc4b95d commit 737ff99Copy full SHA for 737ff99
apps/webapp/app/v3/services/cancelAttempt.server.ts
@@ -6,6 +6,7 @@ import { logger } from "~/services/logger.server";
6
7
import { PrismaClientOrTransaction, prisma } from "~/db.server";
8
import { ResumeTaskRunDependenciesService } from "./resumeTaskRunDependencies.server";
9
+import { CANCELLABLE_STATUSES } from "./cancelTaskRun.server";
10
11
export class CancelAttemptService extends BaseService {
12
public async call(
@@ -54,7 +55,9 @@ export class CancelAttemptService extends BaseService {
54
55
taskRun: {
56
update: {
57
data: {
- status: "INTERRUPTED",
58
+ status: CANCELLABLE_STATUSES.includes(taskRunAttempt.taskRun.status)
59
+ ? "INTERRUPTED"
60
+ : undefined,
61
},
62
63
0 commit comments