Skip to content

Commit 3990bcf

Browse files
modelmirrorclaude
andcommitted
ci(pull): wire CourtListener rate limits to repo variables
The client throttles to FEDCOURTS_COURTLISTENER_RPM/RPH/RPD (config.py), but run-pull never set them, so a paid Free Law Project membership had no effect — pull stayed at the free-tier 5/50/125 defaults. Inject the three from repo/env variables (COURTLISTENER_RPM/RPH/RPD) so the active tier (e.g. Tier 2 = 15/150/600) is configurable without a code change. An unset Actions variable renders as an empty string, which fails pydantic int parsing and would crash pull-all; the `|| '5'/'50'/'125'` fallbacks keep today's free-tier behavior until the variables are set, so this is a no-op until then. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 739f96e commit 3990bcf

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/run-pull.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,16 @@ jobs:
162162
- name: Refresh tracked dockets
163163
env:
164164
FEDCOURTS_COURTLISTENER_API_TOKEN: ${{ secrets.COURTLISTENER_API_TOKEN }}
165+
# CourtListener per-token rate limits the client throttles to
166+
# (config.py courtlistener_rpm/rph/rpd). Set the repo/environment
167+
# variables to the active Free Law Project tier (e.g. Tier 2 = 15/150/600)
168+
# to use the paid membership's higher ceiling. The `|| '...'` fallbacks
169+
# are the free-tier defaults: an unset Actions variable renders as an
170+
# empty string, which would fail int parsing — so absent any variable,
171+
# this stays at today's 5/50/125 rather than crashing pull-all.
172+
FEDCOURTS_COURTLISTENER_RPM: ${{ vars.COURTLISTENER_RPM || '5' }}
173+
FEDCOURTS_COURTLISTENER_RPH: ${{ vars.COURTLISTENER_RPH || '50' }}
174+
FEDCOURTS_COURTLISTENER_RPD: ${{ vars.COURTLISTENER_RPD || '125' }}
165175
run: |
166176
uv run fedcourts pull-all \
167177
--out predict-queue.json \

0 commit comments

Comments
 (0)