If a free premium upgrade is enabled for an installation, we bill based on the original VM size, not the upgraded one. Previously, runners were upgraded during provisioning when the free upgrade was active. However, if the upgrade expired before the runner was destroyed, we ended up charging based on the upgraded VM size, since the upgrade was no longer active at billing time. To fix this, we check the free upgrade expiration time against the runner creation time, not the current time.
2.1 KiB
2.1 KiB