File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
741749const getPrettyTaskRunError = ( code : TaskRunInternalError [ "code" ] ) : TaskRunInternalError => {
Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments