You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The condition invokeCount > 1 is intentional. The first invocation (invokeCount === 1) initiates the warming process without delay, while subsequent invocations (invokeCount > 1) introduce a delay to keep those Lambda instances warm.
Changing it to invokeCount >= invokeTotal would delay only the last invocation, leaving others unwarmed.
If Lambdas aren't being warmed as expected, it might be due to the default config.delay setting. Try increasing it to allow more time for warming.
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.
The text was updated successfully, but these errors were encountered: