File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ export class TaskExecutor {
383
383
reject (
384
384
new InternalError ( {
385
385
code : TaskRunErrorCodes . MAX_DURATION_EXCEEDED ,
386
- message : `Task execution exceeded maximum duration of ${ maxDuration } ms ` ,
386
+ message : `Run exceeded maximum compute time (maxDuration) of ${ maxDuration } seconds ` ,
387
387
} )
388
388
) ;
389
389
} ) ;
Original file line number Diff line number Diff line change @@ -1417,7 +1417,7 @@ describe("TaskExecutor", () => {
1417
1417
1418
1418
test ( "should handle max duration abort signal and call hooks in correct order" , async ( ) => {
1419
1419
const executionOrder : string [ ] = [ ] ;
1420
- const maxDurationMs = 1000 ;
1420
+ const maxDurationSeconds = 1000 ;
1421
1421
1422
1422
// Create an abort controller that we'll trigger manually
1423
1423
const controller = new AbortController ( ) ;
@@ -1439,7 +1439,7 @@ describe("TaskExecutor", () => {
1439
1439
fn : async ( { error } ) => {
1440
1440
executionOrder . push ( "failure" ) ;
1441
1441
expect ( ( error as Error ) . message ) . toBe (
1442
- `Task execution exceeded maximum duration of ${ maxDurationMs } ms `
1442
+ `Run exceeded maximum compute time (maxDuration) of ${ maxDurationSeconds } seconds `
1443
1443
) ;
1444
1444
} ,
1445
1445
} ) ;
@@ -1494,7 +1494,7 @@ describe("TaskExecutor", () => {
1494
1494
error : {
1495
1495
type : "INTERNAL_ERROR" ,
1496
1496
code : TaskRunErrorCodes . MAX_DURATION_EXCEEDED ,
1497
- message : "Task execution exceeded maximum duration of 1000ms " ,
1497
+ message : "Run exceeded maximum compute time (maxDuration) of 1000 seconds " ,
1498
1498
stackTrace : expect . any ( String ) ,
1499
1499
} ,
1500
1500
skippedRetrying : false ,
You can’t perform that action at this time.
0 commit comments