Skip to content

Commit 8b00074

Browse files
authored
Merge pull request #161 from ModelMirrorAI/ci/pull-courtlistener-rate-vars
ci(pull): wire CourtListener rate limits to repo variables
2 parents 746c000 + 3990bcf commit 8b00074

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)