Repository navigation
Let teams ask for CPU-only compute, and price it - #105
Merged
Merged
Conversation
- The application form's estimators get "CPU only, no GPU": the team gives the cores (1-512) and the hours. It is priced at Krater's CPU price per core-hour, or at the team's own price per machine-hour. - Admins set the CPU price per core-hour under Organization limits on /admin/compute (0 means not set; teams then give their own price). - Partner grants value core-hours from jobs that used no GPU at that price, next to GPU-hours. Each day keeps the price it was first valued at; days imported before this are read again once. - The funder packet's "GPU estimate" is now "Compute estimate". Migrations d3f8b1c5e7a2 and e6a2c9d4f1b8 only add columns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
/pricing/estimate) and the no-JavaScript form both handle it./admin/compute(micro-dollars,cpu_core_hour_microusd). 0 means not set; teams then give their own price.No compute runs CPU-only yet; this is the form and the accounting.
Migrations
Both only add columns:
d3f8b1c5e7a2:compute_settings.cpu_core_hour_microusd(NOT NULL, default 0)e6a2c9d4f1b8: nullableospool_usage_days.cpu_core_hours,core_rate_microusd,core_value_centsTests
Full suite on Windows: all pass except
test_ssh_reach, which fails only on Windows (fixed for Linux in #103). Ruff is clean. The form and the admin setting were checked in a browser.🤖 Generated with Claude Code