Commit d7d1618 1 parent 1b0246b commit d7d1618 Copy full SHA for d7d1618
File tree 1 file changed +8
-1
lines changed
shared/packages/worker/src
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -901,19 +901,26 @@ export class WorkerAgent {
901
901
private intervalErrorCheck ( ) {
902
902
if ( this . failureCounter === 0 ) {
903
903
// reset the failurePeriodCounter when there were no exceptions in the period
904
+
905
+ this . logger . debug (
906
+ `Worker ErrorCheck: There was a period with 0 errors, resetting failurePeriodCounter (from ${ this . failurePeriodCounter } )`
907
+ )
904
908
this . failurePeriodCounter = 0
905
909
// everything seems fine
906
910
return
907
911
}
908
912
909
913
if ( this . failureCounter > 0 ) {
910
914
this . failurePeriodCounter ++
915
+ this . logger . debug (
916
+ `Worker ErrorCheck: There was a period with ${ this . failureCounter } errors, incrementing failurePeriodCounter (to ${ this . failurePeriodCounter } )`
917
+ )
911
918
this . failureCounter = 0
912
919
}
913
920
914
921
if ( this . failurePeriodCounter >= this . config . worker . failurePeriodLimit ) {
915
922
this . logger . error (
916
- `Worker: Failed failurePeriodLimit check: ${ this . failurePeriodCounter } periods with errors. Requesting spin down.`
923
+ `Worker ErrorCheck : Failed failurePeriodLimit check: ${ this . failurePeriodCounter } periods with errors. Requesting spin down.`
917
924
)
918
925
this . requestShutDown ( true )
919
926
}
You can’t perform that action at this time.
0 commit comments