# Resume the sleep timer of a namespace when an okteto endpoints is requested

**URL:** <https://community.okteto.com/t/resume-the-sleep-timer-of-a-namespace-when-an-okteto-endpoints-is-requested/157>\
**Category:** Feature Requests\
**Created:** [July 15, 2022, 12:39pm UTC](https://community.okteto.com/t/resume-the-sleep-timer-of-a-namespace-when-an-okteto-endpoints-is-requested/157 "2022-07-15T12:39:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexissellier](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/alexissellier/32/92_2.png) [@alexissellier](https://community.okteto.com/u/alexissellier)\
**Post date:** [July 15, 2022, 12:39pm UTC](https://community.okteto.com/t/resume-the-sleep-timer-of-a-namespace-when-an-okteto-endpoints-is-requested/157/1 "2022-07-15T12:39:16Z")

</div>

When I do a browser request to an endpoints okteto has created, it should reset the “sleep timer” of the entire namespace and start again to 0.

---

<div class="post-metadata">

**Author:** ![pchico83](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/pchico83/32/25_2.png) [@pchico83](https://community.okteto.com/u/pchico83)\
**Post date:** [July 15, 2022, 1:18pm UTC](https://community.okteto.com/t/resume-the-sleep-timer-of-a-namespace-when-an-okteto-endpoints-is-requested/157/2 "2022-07-15T13:18:25Z")

</div>

Hi @alexissellier, what’s your use case? is it only for preview environments? or also for dev environments?

---

<div class="post-metadata">

**Author:** ![alexissellier](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/alexissellier/32/92_2.png) [@alexissellier](https://community.okteto.com/u/alexissellier)\
**Post date:** [July 20, 2022, 7:05am UTC](https://community.okteto.com/t/resume-the-sleep-timer-of-a-namespace-when-an-okteto-endpoints-is-requested/157/3 "2022-07-20T07:05:58Z")

</div>

My use case is to be able to lower at the maximum the value of `scaleToZeroPeriod` in the GC so I can lower my infrastructure cost. Without the sleep timer resetting each time a request is done, I will end up having my dev environment scale down even if someone is working on it.

---

<div class="post-metadata">

**Author:** ![pchico83](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/pchico83/32/25_2.png) [@pchico83](https://community.okteto.com/u/pchico83)\
**Post date:** [July 20, 2022, 7:36am UTC](https://community.okteto.com/t/resume-the-sleep-timer-of-a-namespace-when-an-okteto-endpoints-is-requested/157/4 "2022-07-20T07:36:45Z")

</div>

What resets the timmer today is to have an active `okteto up` session. A dev environment never scales to zero while you are running `okteto up`. Would that cover your use case?
