# Do VMs sleep?

**URL:** <https://community.fly.io/t/do-vms-sleep/747>\
**Category:** General\
**Created:** [February 13, 2021, 10:55am UTC](https://community.fly.io/t/do-vms-sleep/747 "2021-02-13T10:55:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nahtnam](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/nahtnam/32/13664_2.png) [@nahtnam](https://community.fly.io/u/nahtnam)\
**Post date:** [February 13, 2021, 10:55am UTC](https://community.fly.io/t/do-vms-sleep/747/1 "2021-02-13T10:55:49Z")

</div>

Hey,

I deployed an app to process all my jobs and I have one that is supposed to run once every hour non-stop. I noticed in my logging application that it only runs for a few hours after a deployment and then stops. Maybe something is wrong with my code (it previously worked on digitalocean but I changed some stuff), but I also want to confirm that the app should be always running on the server?

---

<div class="post-metadata">

**Author:** ![jerome](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jerome/32/17_2.png) [@jerome](https://community.fly.io/u/jerome)\
**Post date:** [February 13, 2021, 12:23pm UTC](https://community.fly.io/t/do-vms-sleep/747/2 "2021-02-13T12:23:44Z")

</div>

Apps should always been running. Except for when they exit, then they’re automatically restarted.

Would you mind providing the app name? I can take a closer look at what happened to it. Also, if you `flyctl status`, you should see all instances and their status.

---

<div class="post-metadata">

**Author:** ![nahtnam](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/nahtnam/32/13664_2.png) [@nahtnam](https://community.fly.io/u/nahtnam)\
**Post date:** [February 14, 2021, 3:35am UTC](https://community.fly.io/t/do-vms-sleep/747/3 "2021-02-14T03:35:43Z")

</div>

Thanks! In that case, I think it might be a problem with the code itself, I’ll debug further. If you want to take a look, the app name is `caddie-api-jobs`. I unfortunately didn’t notice until after I redeployed but I’ll check the status next time if this happens again.

EDIT: It happened again but the status shows that it is running so most definitely something in this code.
