Skip to content

Commit 1f629e4

Browse files
committed
Add one more terminal status
1 parent 38b7ee4 commit 1f629e4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/api/submission/submission.service.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2287,7 +2287,12 @@ export class SubmissionService {
22872287
});
22882288
}
22892289
}
2290-
const TERMINAL_STATUSES = ['COMPLETED', 'FAILED', 'CANCELLED'];
2290+
const TERMINAL_STATUSES = [
2291+
'COMPLETED',
2292+
'FAILURE',
2293+
'CANCELLED',
2294+
'SUCCESS',
2295+
];
22912296

22922297
const runs = await this.prisma.aiWorkflowRun.findMany({
22932298
where: { submissionId: id },

0 commit comments

Comments
 (0)