How do we handle a function that may take longer than 15 minutes? (15 minutes is the limit for background functions AFAIK). I have to update up to 2,000 records and don’t want the function to timeout.
My idea so far is to use recursion: Monitor how long the function is taking, then if the time is approaching 15 minutes, recursively call itself (to update the remaining records).
Can someone share their thoughts / experiences? I’m using Node JS.