If you look at line 106 where is being checked whether a delay must be triggered within the lambda, the code looks atinvokeCount, which increases for every invoke. I think this should be invokeCount >= invokeTotal, as otherwise only the first lambda that is called will be delayed, while all up following lambda triggers will have no delay (e.g. invokeTotal = 5, than invokeCount > 1 is true 4 times). In case invokeCount equals invokeTotal no delay is necessary.
Currently, this results into less lambda invokes that are warmed.
If you look at line 106 where is being checked whether a delay must be triggered within the lambda, the code looks at
invokeCount
, which increases for every invoke. I think this should beinvokeCount >= invokeTotal
, as otherwise only the first lambda that is called will be delayed, while all up following lambda triggers will have no delay (e.g. invokeTotal = 5, than invokeCount > 1 is true 4 times). In case invokeCount equals invokeTotal no delay is necessary.Currently, this results into less lambda invokes that are warmed.