Hi, is it possible to schedule task / run code at setIntervals on the server? I’m looking to automate refreshing my instagram access token which needs to be done every 60 days
and looks like it can be achieved with a simple API call.
perry
August 25, 2020, 5:20pm
2
hi there, we don’t support this natively, I think. But that doesn’t mean it can’t be done - there are some suggestions here on how to make this work:
+1 to this — lack of scheduled functions is currently holding us back. AWS Lambda natively supports scheduled events , but unfortunately Netlify’s wrapper doesn’t expose that functionality.
It’s not a very exciting feature and probably would not look as glorious on a roadmap. Yeat, it would make my life with Netlify easier…
I’d really love to have an ability to rebuild sites every X hours.
Currently, my site builds and deploys automatically when I commit to my repo. However, I have some date based functions that I’d like to update weekly - is there a way to have my site auto build/deploy on a time basis?
GitHub actions might be your friend here you can have them run on a cron interval and do your API key updates and such
—
Jon