File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -656,7 +656,9 @@ export class MaxDurationExceededError extends Error {
656656 public readonly maxDurationInSeconds : number ,
657657 public readonly elapsedTimeInSeconds : number
658658 ) {
659- super ( `Run exceeded maximum compute time (maxDuration) of ${ maxDurationInSeconds } seconds` ) ;
659+ super (
660+ `Run exceeded maximum compute time (maxComputeSeconds) of ${ maxDurationInSeconds } seconds`
661+ ) ;
660662
661663 this . name = "MaxDurationExceededError" ;
662664 }
@@ -756,6 +758,12 @@ const prettyInternalErrors: Partial<
756758 href : links . docs . troubleshooting . uncaughtException ,
757759 } ,
758760 } ,
761+ MAX_DURATION_EXCEEDED : {
762+ link : {
763+ name : "How to set maxComputeSeconds (maxDuration)" ,
764+ href : links . docs . maxDuration ,
765+ } ,
766+ } ,
759767} ;
760768
761769const 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