Skip to content

Commit 5a95611

Browse files
committed
MAX_DURATION_EXCEEDED -> TIMED_OUT
1 parent a414d0d commit 5a95611

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/webapp/app/presenters/v3/ApiRetrieveRunPresenter.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export class ApiRetrieveRunPresenter extends BasePresenter {
271271
return "EXPIRED";
272272
}
273273
case "TIMED_OUT": {
274-
return "MAX_DURATION_EXCEEDED";
274+
return "TIMED_OUT";
275275
}
276276
default: {
277277
assertNever(status);

apps/webapp/app/presenters/v3/ApiRunListPresenter.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export class ApiRunListPresenter extends BasePresenter {
310310
case "EXPIRED": {
311311
return "EXPIRED";
312312
}
313-
case "MAX_DURATION_EXCEEDED": {
313+
case "TIMED_OUT": {
314314
return "TIMED_OUT";
315315
}
316316
default: {

packages/core/src/v3/schemas/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ export const RunStatus = z.enum([
445445
/// Task has expired and won't be executed
446446
"EXPIRED",
447447
/// Task has reached it's maxDuration and has been stopped
448-
"MAX_DURATION_EXCEEDED",
448+
"TIMED_OUT",
449449
]);
450450

451451
export type RunStatus = z.infer<typeof RunStatus>;

0 commit comments

Comments
 (0)