v0.2.0-beta.23
Platform & APIFixed
- Managed servers no longer get stuck at "Provisioning" forever. The one-shot
server-statuspoll job only retries for ~5 minutes; if the VM reachesrunningon the provider later than that (slow boot, or the worker process restarted mid-poll), the job exhausted and gave up silently — leaving the server stuck atprovisioningeven though the VM was actually running. Added an independent provisioning reconciliation sweep (reconcileProvisioningServers, runs every 30s from the background workers) that re-checks every server still stuck atprovisioningand drives it forward: promotes it torunningand hands off to setup as soon as the provider reports it ready (idempotent — the fixed setupjobIdde-dupes), or marks iterrorwith a clear retryable message if the provider errored or it's been provisioning past a 20-minute deadline (no more silent dead-ends). The existing poll/setup workers are unchanged — this is a safety net. - Added
scripts/requeue-stuck-servers.ts(npm run requeue:stuck-servers) to immediately recover any servers already stuck atprovisioning(orrunningwith setup still pending).
Fixed
- Storage quota no longer unfairly blocks deploys ("Monthly storage limit reached"). Three compounding bugs are fixed: - Enforcement rounded any usage up to a full GB. The check compared
ceil(bytes / GB) >= limit, so a free org (1 GB) was blocked the moment *any* storage was recorded. It now compares real bytes againstlimit × GB. - Per-deploy cumulative inflation. Each deploy added its image size to a running "peak" that never decreased (even though only the last 5 images are kept on disk), so redeploys eventually tripped the limit. Storage is no longer metered by cumulative deploy size. - Whole-host over-counting on shared hosts. Storage was measured as the entire host's docker disk and attributed to *every* org on it. It's now measured per-org as the footprint of that org's own project images (pushify/<slug>), so co-tenants aren't charged for each other's images or for build cache. - Free-tier storage allowance raised from 1 GB to 5 GB.
- Added
scripts/reset-storage-usage.ts(npm run reset:storage-usage [-- --org <id>]) to clear the previously-inflated current-period peaks; the next disk sync re-records the correct per-org footprint.