I’m trying to get my personal sites off Firebase. The static hosting should be easy but I’m trying to figure out how to replicate a scheduled function. The function is written in node.js and is pretty simple: It reads in a list from firestore and calls an api (Mastodon). The code is more suited to a web service, but you can’t schedule those as cron jobs. I thought I had found a reference to scheduling functions (might have been a beta feature) but now don’t see it. It seems like there should be a way to do this with Render but I’m stuck figuring out the best route to get there.
That sounds like the exact use case for a Render Cron Job.
Alternatively, if you’re running a number of different jobs and/or at a very high frequency, a Background Worker with a job library (e.g. Bull) may be another solution to investigate.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.