Skip to content

Commit 8a02c00

Browse files
committed
The client status for TIMED_OUT is now MAX_DURATION_EXCEEDED
1 parent 4afc6b3 commit 8a02c00

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 "TIMED_OUT";
274+
return "MAX_DURATION_EXCEEDED";
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 "TIMED_OUT": {
313+
case "MAX_DURATION_EXCEEDED": {
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-
"TIMED_OUT",
448+
"MAX_DURATION_EXCEEDED",
449449
]);
450450

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

0 commit comments

Comments
 (0)