keygen-sh / keygen-api

Keygen is a fair source software licensing and distribution API built with Ruby on Rails. For developers, by developers.
https://keygen.sh
Other
699 stars 40 forks source link

Fix issue where certain idle machines were never culled #765

Closed ezekg closed 8 months ago

ezekg commented 8 months ago

When a policy that didn't require a heartbeat was later updated to require heartbeats, existing idle machines would not be culled. This resolves that issue by culling machines when their heartbeat has not been started, as long as their policy requires heartbeats and their created timestamp is older than the policy's heartbeat window.