Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pacer): add command to fetch docs filtered by page count from PACER #4901

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

elisa-a-v
Copy link
Contributor

@elisa-a-v elisa-a-v commented Jan 8, 2025

Closes #4839

Implement a Django command to fetch docs from PACER within a given range of page_count. This of course means we can only fetch docs for which we already know the page count for.

This script implements two types of throttling:

  1. Uses CeleryThrottle to avoid the queue from getting too full.
  2. Uses built-in Celery Task rate_limiting to enforce a minimum wait between executions of PACER fetch task.

Given these use different mechanisms and serve different purposes, in theory they shouldn't conflict.

Note:

This PR also refactors do_pacer_fetch so the logic to fetch PDFs is abstracted and then also used in the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make a script to get the docs we already know are >= 1000 pages long
1 participant