usaco: let running jobs finish on stop, add a Claude budget
The site now waits up to 5 minutes on SIGTERM for running Claude jobs, so stop_grace_period must be longer than Docker's 10s default. USACO_CLAUDE_MONTHLY_BUDGET caps its estimated monthly Claude spend. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -253,6 +253,11 @@ USACO_WEBHOOK_SECRET=
|
||||
# extraction. Blank means claude-opus-5-5. The key is CLAUDE_API_KEY above;
|
||||
# without it the button is off and the rest of the site works.
|
||||
USACO_CLAUDE_MODEL=
|
||||
# Monthly cap on the USACO site's estimated Claude spend, in dollars (e.g.
|
||||
# 20). Once a calendar month (UTC) reaches it, new Explain/review/concept/
|
||||
# evaluate jobs are refused until the 1st. Blank: no cap; the spend is still
|
||||
# shown on the site's stats page to the admin.
|
||||
USACO_CLAUDE_MONTHLY_BUDGET=
|
||||
# Recording reviews (the admin uploads themselves explaining a solution).
|
||||
# Claude cannot take audio, so this OpenAI key transcribes it (whisper-1,
|
||||
# about $0.006 a minute). Blank turns reviews off.
|
||||
|
||||
Reference in New Issue
Block a user