booster icon indicating copy to clipboard operation
booster copied to clipboard

Increase handlers' timeouts via configuration

Open juanjoman opened this issue 4 years ago • 2 comments

Description

Right now, all lambda timeouts are set to 1 minute: https://github.com/boostercloud/booster/blob/master/packages/framework-provider-aws-infrastructure/src/infrastructure/params.ts#L24

It would be great to increase this limitation via configuration.

Possible Solution

Add a timeout property in the Booster framework config to edit this limitation. For example:

Booster.configure('development', (config: BoosterConfig): void => {
  config.appName = 'my-store'
  config.handlersTimeout = 6 // 6 minutes - 1 minute as default if not specified
  config.provider = AWS.Provider() // Or through a provider "props" object
})

juanjoman avatar Feb 01 '21 14:02 juanjoman

cc @alvaroloes

juanjoman avatar Feb 01 '21 15:02 juanjoman

Remember that this should be a solution that could be applied to any provider, not only AWS.

NickSeagull avatar Feb 25 '21 11:02 NickSeagull