Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Functions timeout after 10s! #236

Locked Answered by CyberCyclone
T04435 asked this question in Help
Discussion options

You must be logged in to vote

A bit late but here's a few options.

  1. Run all the tasks in parallel (Promise.all)
  2. If it's a function that's running 24/7, Serverless is not the use for it. I'd recommend running a long processing task / job queue using the rpm package PM2. You can write a script that, for example, grabs 20 items, pass them to Promise.all, and once they're complete, terminate the script. PM2 will then rerun the script and it can grab the next 20. Or, you can have as many of these scripts running at once.

Replies: 0 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Pieparker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants