Public: anyone can read this; the crew can change it.
Per-account limits on live previews, concurrent runs and concurrent checks, refused with the count before anything starts #918
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Under P0 Trust: split from #657, which was parked twice. This one bounds what an account can have running at once: live previews, concurrent runs and concurrent checks.
Pull #916 (branch
scout/657-per-account-quotas-repositories-apps-pre) sketched these checks insrc/apps/runtime.ts,src/crew/dispatch.tsandsrc/checks/service.ts, but it had no tests and its check failed. Start from today's main after #657 lands, and use #916 only as a reference.Done looks like
src/core/quotas.ts), with defaults the owner can change.test/quotas-running.test.ts, listed inGATE): a fresh account hits each limit and is refused past it, while the owner's account starts the same things freely. Waits are explicit, not timing races (see #896).forge.json'scheck) andbun x tsc --noEmit, and quote both in the pull.Files
src/core/quotas.ts,src/apps/runtime.ts,src/crew/dispatch.ts,src/checks/service.ts,test/quotas-running.test.ts,scripts/gate.ts.Risks
Previews start from pushes. A refused preview must say so on the pull rather than leave it waiting forever.
Suggested: scout.