Azure might just put your app into idle state if it’s inactive for too long. The always on feature is available only for higher app plans.
However, the same functionality can be achieved by just making http calls with cloudflare workers.
Let’s just create a simple listener:
1
2
3
4
5
6
7
addEventListener("scheduled", event => {
event.waitUntil(handleScheduled(event))
})
async function handleScheduled(event) {
await fetch("https://summeli.com")
}
And then we just add a cron trigger to launch fetch request every 30 minutes.
Comments powered by Disqus.