# Recurring scheduled tasks (like cron)

**URL:** <https://community.fly.io/t/recurring-scheduled-tasks-like-cron/1431>\
**Category:** Questions / Help\
**Created:** [May 10, 2021, 10:12pm UTC](https://community.fly.io/t/recurring-scheduled-tasks-like-cron/1431 "2021-05-10T22:12:31Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![Tv1](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@Tv1](https://community.fly.io/u/Tv1)\
**Post date:** [May 17, 2022, 10:36pm UTC](https://community.fly.io/t/recurring-scheduled-tasks-like-cron/1431/18 "2022-05-17T22:36:55Z")

</div>

I have some use cases where the batch job wants to run with higher privileges than the normal. To illustrate, consider a service with a read-only connection to a data store, and a batch job that updates the data store (in reality, it’s less write access vs more write access).

In another case, they’re even using different software stacks – the always-on VM is a webapp dictated by frameworks to be NodeJS, while the batch jobs are Deno or Go.

It would be great to schedule a “start this VM every X minutes” kind of a thing, where the VM exits when the batch is done.

If you’re worried about old school cron style overruns (the previous instance is still alive when a new one is started), well, you _already_ need to handle that right with block devices! Use that solution. (Ideally in a way that doesn’t waste 1GB for no reason.)

---

_[View the full topic](https://community.fly.io/t/recurring-scheduled-tasks-like-cron/1431)._
