Skip to content

Preventing your site from idling out with Cloudflare workers

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:

addEventListener("scheduled", event => {

async function handleScheduled(event) {
  await fetch("")

Ant then we just add a cron trigger to launch the fetch request every 30 minutes.

Leave a Reply