def idle_timeout()

in hpcpack-autoscaler/src/cyclecloud-hpcpack/hpcnodehistory.py [0:0]


    def idle_timeout(self, idle_timeout_seconds: int = 900):
        if self.stopped or not self.idle_from or not self.hpc_id:
            return False
        return self.idle_from + timedelta(seconds=idle_timeout_seconds) < datetime.utcnow()