Exceeding 30 Second Lambda Limit / Async Dispatch #86
-
Hello, I'm trying to use Browsershot to render a few hundred pages of output, which takes longer than the 30 second lambda execution time available, as I understand it. Is there a way to set the Browsershot function off async, so it'll store the resulting PDF on S3, and it can have the full 15 minute lambda execution time in order to generate that PDF? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is currently badly documented, but you can set the Or you could manually update the timeout setting in the AWS web UI. (Setting reset after each deployment though) There's currently no async-support in sidecar-browsershot. However, Sidecar supports async execution (link). Not sure how that would work or how we could expose an API for this. Have to think about this more. Currently you can store files directly on S3 (docs), but that is a sync action and would take 15 minutes in your project. |
Beta Was this translation helpful? Give feedback.
This is currently badly documented, but you can set the
SIDECAR_TIMEOUT
-env variable to change the timeout setting of the function. Don't forget to redeploy your function.(This would be a global change that affects all Sidecar functions in your project; made a note to add a dedicated setting in v2 (coming later this year #85))
Or you could manually update the timeout setting in the AWS web UI. (Setting reset after each deployment though)
There's currently no async-support in sidecar-browsershot. However, Sidecar supports async execution (link).
Not sure how that would work or how we could expose an API for this.
Currently sidecar-browsershot doesn't really expose any Sidecar functions …