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 @@ -1460,7 +1460,7 @@ describe("TaskExecutor", () => {
1460
1460
1461
1461
test ( "should handle max duration abort signal and call hooks in correct order" , async ( ) => {
1462
1462
const executionOrder : string [ ] = [ ] ;
1463
- const maxDurationMs = 1000 ;
1463
+ const maxDurationSeconds = 1000 ;
1464
1464
1465
1465
// Create an abort controller that we'll trigger manually
1466
1466
const controller = new AbortController ( ) ;
@@ -1482,7 +1482,7 @@ describe("TaskExecutor", () => {
1482
1482
fn : async ( { error } ) => {
1483
1483
executionOrder . push ( "failure" ) ;
1484
1484
expect ( ( error as Error ) . message ) . toBe (
1485
- `Task execution exceeded maximum duration of ${ maxDurationMs } ms `
1485
+ `Run exceeded maximum compute time (maxDuration) of ${ maxDurationSeconds } seconds `
1486
1486
) ;
1487
1487
} ,
1488
1488
} ) ;
@@ -1537,7 +1537,7 @@ describe("TaskExecutor", () => {
1537
1537
error : {
1538
1538
type : "INTERNAL_ERROR" ,
1539
1539
code : TaskRunErrorCodes . MAX_DURATION_EXCEEDED ,
1540
- message : "Task execution exceeded maximum duration of 1000ms " ,
1540
+ message : "Run exceeded maximum compute time (maxDuration) of 1000 seconds " ,
1541
1541
stackTrace : expect . any ( String ) ,
1542
1542
} ,
1543
1543
skippedRetrying : false ,
You can’t perform that action at this time.
0 commit comments