File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/cli-v3/src/entryPoints/managed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -469,10 +469,12 @@ export class RunExecution {
469
469
470
470
// Also set or update the attempt number - we do this to detect illegal attempt number changes, e.g. from stalled runners coming back online
471
471
const attemptNumber = start . data . run . attemptNumber ;
472
- if ( attemptNumber ) {
472
+ if ( attemptNumber && attemptNumber > 0 ) {
473
473
this . currentAttemptNumber = attemptNumber ;
474
474
} else {
475
- this . sendDebugLog ( "ERROR: no attempt number returned from start attempt" ) ;
475
+ this . sendDebugLog ( "ERROR: invalid attempt number returned from start attempt" , {
476
+ attemptNumber : String ( attemptNumber ) ,
477
+ } ) ;
476
478
}
477
479
478
480
const metrics = this . measureExecutionMetrics ( {
You can’t perform that action at this time.
0 commit comments