State job run allowances by plan
Summary
The Job Runs page said every workspace has 10,000 job runs a month. Production Console (cloud v0.22.420) gives 1,000 without a plan, 10,000 on Team or a trial, 20,000 on Pro, and sells Run Monitoring 10K and 100K plans, so the page overstated the free allowance and left out the plans that raise it.
Changes
- Limits: a table of job runs a month and price for no plan, Team or a trial, Pro, Run Monitoring 10K ($19/mo, $190/yr), and Run Monitoring 100K ($99/mo, $990/yr).
- Run Monitoring plans: bought by an owner on Billing, license no server; contact for more than 100,000.
- Several plans give the largest allowance, not the sum.
- Past the allowance: successful runs counted but not listed; failed runs listed until 110% of the allowance; owner emails at 80% and 100%; no automatic charge.
- History: 30 days on Team, Pro, a Run Monitoring plan, or a trial; 7 days without a plan (was "Team or Pro or a trial").
- Alerts: email without a plan; chat, PagerDuty, and webhooks with Team, Pro, a trial, or Run Monitoring.
Testing
Checked against the cloud code: billing.JobRunsOf and jobsPlans (internal/modules/billing/jobs.go), jobKeep and jobStoredBound (internal/modules/monitor/run_records.go, store_ingest.go), plan.jobHistory (plans.go), and alertPlans.covers (channels.go).
Summary by cubic
Fixes the Job Runs page, which said every workspace has 10,000 job runs a month. Console actually gives 1,000 without a plan, 10,000 on Team or a trial, 20,000 on Pro, and sells Run Monitoring 10K and 100K plans, so the page understated the free allowance and hid the paid plans.
- Adds a table of monthly job run allowances and prices for no plan, Team or a trial, Pro, Run Monitoring 10K, and Run Monitoring 100K.
- Documents how plans combine (the largest allowance wins, not the sum), what happens past the allowance, history retention by plan, and which plans send alerts to chat, PagerDuty, and webhooks.