Ci fixes #36
5 changed files with 18474 additions and 7 deletions
|
|
@ -8,7 +8,16 @@
|
|||
"Bash(done)",
|
||||
"Bash(grep -c 'def test_' tests/unit/*.py tests/unit/**/*.py tests/integration/*.py)",
|
||||
"Bash(sort -t: -k2 -rn)",
|
||||
"Bash(wc -l frontend/src/pages/*.vue)"
|
||||
"Bash(wc -l frontend/src/pages/*.vue)",
|
||||
"Bash(uv run ruff format app/api/routers/runs.py app/services/arxiv/rate_limit.py tests/integration/test_run_lifecycle_consistency.py)",
|
||||
"Bash(ruff format app/api/routers/runs.py app/services/arxiv/rate_limit.py tests/integration/test_run_lifecycle_consistency.py)",
|
||||
"Bash(npm install --package-lock-only)",
|
||||
"Bash(python -m ruff format app/api/routers/runs.py app/services/arxiv/rate_limit.py tests/integration/test_run_lifecycle_consistency.py)",
|
||||
"Bash(pip show ruff)",
|
||||
"Bash(pip install ruff)",
|
||||
"Bash(uvx ruff format app/api/routers/runs.py app/services/arxiv/rate_limit.py tests/integration/test_run_lifecycle_consistency.py)",
|
||||
"Bash(git add app/api/routers/runs.py app/services/arxiv/rate_limit.py tests/integration/test_run_lifecycle_consistency.py docs/website/package-lock.json)",
|
||||
"Bash(git push)"
|
||||
],
|
||||
"additionalDirectories": [
|
||||
"/home/jv/src/personal/playground/scholar_scraper/scholar-scraper/frontend/src"
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ def _drop_finished_task(task: asyncio.Task[Any]) -> None:
|
|||
except Exception:
|
||||
structured_log(logger, "exception", "runs.background_task_failed")
|
||||
|
||||
|
||||
router = APIRouter(prefix="/runs", tags=["api-runs"])
|
||||
ACTIVE_RUN_STATUSES = {RunStatus.RUNNING, RunStatus.RESOLVING}
|
||||
|
||||
|
|
|
|||
|
|
@ -99,9 +99,7 @@ async def _run_serialized_fetch(
|
|||
"arxiv.request_completed",
|
||||
status_code=int(response.status_code),
|
||||
wait_seconds=wait_seconds,
|
||||
cooldown_remaining_seconds=_cooldown_remaining_seconds(
|
||||
cooldown_until_value, now_utc=datetime.now(UTC)
|
||||
),
|
||||
cooldown_remaining_seconds=_cooldown_remaining_seconds(cooldown_until_value, now_utc=datetime.now(UTC)),
|
||||
source_path=source_path,
|
||||
)
|
||||
return response, hit_rate_limit
|
||||
|
|
|
|||
18461
docs/website/package-lock.json
generated
Normal file
18461
docs/website/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -30,9 +30,7 @@ class _PassthroughSource:
|
|||
error=None,
|
||||
)
|
||||
|
||||
async def fetch_profile_page_html(
|
||||
self, scholar_id: str, *, cstart: int, pagesize: int
|
||||
) -> FetchResult:
|
||||
async def fetch_profile_page_html(self, scholar_id: str, *, cstart: int, pagesize: int) -> FetchResult:
|
||||
return await self.fetch_profile_html(scholar_id)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue