Different type of cron

I have a need for calling a function hosted on aws lambda based on dynamic interval. The function usually needs to be called for few hours a day to finish processing. Because I’m calling external services, sometimes I would call this function on 5 minute interval or could be longer if I run into rate limit issues. So I’m thinking of writing a service which would allow the endpoints to pass back the time (eg 5m or 1h) as a response header to define when to call the function next.

I know it’s very specific use case but is this something that can be extended for other uses cases? Trying to figure out if it’s worth building a micro SaaS

Trending on Indie Hackers
We just reached a major milestone: $500k ARR 🔥 16 comments Idea to 350k Users 13 comments We've bootstrapped to $1.6m ARR in a crowded market. AMA. 12 comments Building a Shopify clone🤪 (it's for a one-time small fee, no recurring fees/commissions🤩). 9 comments How do you track page views? 4 comments Is there a feature missing from CRM? 3 comments