Skip to content

Commit 9ac5175

Browse files
committed
Updated the error and link to the docs
1 parent b25ed4c commit 9ac5175

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

packages/core/src/v3/errors.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,9 @@ export class MaxDurationExceededError extends Error {
636636
public readonly maxDurationInSeconds: number,
637637
public readonly elapsedTimeInSeconds: number
638638
) {
639-
super(`Run exceeded maximum compute time (maxDuration) of ${maxDurationInSeconds} seconds`);
639+
super(
640+
`Run exceeded maximum compute time (maxComputeSeconds) of ${maxDurationInSeconds} seconds`
641+
);
640642

641643
this.name = "MaxDurationExceededError";
642644
}
@@ -736,6 +738,12 @@ const prettyInternalErrors: Partial<
736738
href: links.docs.troubleshooting.uncaughtException,
737739
},
738740
},
741+
MAX_DURATION_EXCEEDED: {
742+
link: {
743+
name: "How to set maxComputeSeconds (maxDuration)",
744+
href: links.docs.maxDuration,
745+
},
746+
},
739747
};
740748

741749
const getPrettyTaskRunError = (code: TaskRunInternalError["code"]): TaskRunInternalError => {

packages/core/src/v3/links.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const links = {
2626
personalAccessToken:
2727
"https://trigger.dev/docs/github-actions#creating-a-personal-access-token",
2828
},
29+
maxDuration: "https://trigger.dev/docs/runs/max-duration",
2930
},
3031
site: {
3132
home: "https://trigger.dev",

0 commit comments

Comments
 (0)