Skip to content

Commit edefd44

Browse files
committed
fix #7663 -- on prem compute server -- do not send a message saying it will be deleted, since they are FREE
1 parent 56a71df commit edefd44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/packages/server/compute/maintenance/purchases/low-balance.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ const DELETE_THRESH_MARGIN = 10;
2424
const logger = getLogger("server:compute:maintenance:purchase:low-balance");
2525

2626
export default async function lowBalance({ server }) {
27+
if (server.cloud == "onprem") {
28+
// currently there is no charge at all for onprem compute servers
29+
return;
30+
}
2731
if (server.state == "deprovisioned") {
2832
// We only need to worry if the server isn't already deprovisioned.
2933
return;

0 commit comments

Comments
 (0)