# Parameter "runtime\_hours"

**URL:** <https://discourse.openiap.io/t/parameter-runtime-hours/1182>\
**Category:** OpenCore\
**Tags:** agent\
**Created:** [February 20, 2024, 9:54am UTC](https://discourse.openiap.io/t/parameter-runtime-hours/1182 "2024-02-20T09:54:35Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [February 26, 2024, 12:50pm UTC](https://discourse.openiap.io/t/parameter-runtime-hours/1182/6 "2024-02-26T12:50:25Z")

</div>

The system was really broken.  
I will push an update that streamlines it, and makes it easier to understand

> [@Node-Red Constantly Disabling on VPS: Seeking Solutions for Continuous Operation](https://discourse.openiap.io/t/node-red-constantly-disabling-on-vps-seeking-solutions-for-continuous-operation/1178/8):
>
> both docker and kubernetes had he exact same code const resource = await Config.db.GetResource("Agent Instance", parent); let runtime: number = resource?.defaultmetadata?.runtime\_hours; if (NoderedUtil.IsNullUndefinded(runtime)) { // If agent resource does not exists, dont turn off agents runtime = 0; // If agent resource does exists, but have no default, use 24 hours if (!NoderedUtil.IsNullUndefinded(resource)) runtime = 2…

---

_[View the full topic](https://discourse.openiap.io/t/parameter-runtime-hours/1182)._
