Read big boards within the agents' reach: countries and remote from the enabled agents, Europe for favourites, filtered at the source by six hosts

app/jobs/reach.py derives each board's reach once per pull and the pull hands it to the runner through the batch payload. SmartRecruiters, Eightfold and SuccessFactors filter one country a request, Phenom a list, Workday and Oracle by host ids from facets. Remote beside countries is a series of its own, since two facets intersect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-09-30 09:55:18 +02:00
1 parent 3adafd8950
commit 3462a4abe7
17 files changed
+1324 -116

No files matched your search

+20 -13
View File
@@ -15,14 +15,17 @@ links. `/api/apply/v2/jobs` answers 403 "Not authorized for PCSX" on the sites
tried, so it is not used.
The search ignores `num` and answers ten roles a page, so a board costs one
request per ten roles, and `ats.MAX_PAGES` (100) stops a read at 1,000 roles: a
larger board (Infineon's 1,292, Microsoft's 2,319) is read incomplete every pull,
and an incomplete read never closes the roles it did not list. The rows are
sorted newest first (`sort_by=timestamp`) so that what the cap keeps is the
newest thousand and the pages do not shuffle between two requests, unlike the
default order, which puts hot roles first. The search does take a `location`
free text (Ericsson's "Sweden" found 157 of 637), which could bring a read
under the cap, but a target names no filter and none is built here.
request per ten roles, and `ats.MAX_PAGES` (100) stops a read at 1,000 roles.
The rows are sorted newest first (`sort_by=timestamp`) so that what the cap
keeps is the newest thousand and the pages do not shuffle between two
requests, unlike the default order, which puts hot roles first.
A country is filtered on the server by `location=<country name>`, one a
request (`Filters(country="one")`): Ericsson's "Sweden" answered 154 of 618 on
2026-09-30, a role at several places is kept when one of them matches, and
the review measured Infineon at 163 of 1,288 and Microsoft at 60 of 2,320 for
Denmark and Sweden, which brings both under the cap. A code with no English
name in `_countries` is read unfiltered.
Discovery names Eightfold from an `eightfold.ai` link, and the host and the
domain from one that carries `domain=`.
@@ -35,15 +38,17 @@ import json
import re
from collections.abc import Callable
from typing import Any
from urllib.parse import quote
from desk.sources import strip_html
from ._contract import Ask, Fields, Place, Reads, Row
from ._contract import Ask, Fields, Filters, Place, Reads, Row
from ._countries import name_of
from ._shared import Get, Page, is_web_url, only, parse_dt
READS = Reads(
scope="board", listing="paged", page_size=10, text="detail", complete="stated",
places="many",
places="many", filters=Filters(country="one"),
fields=Fields(posted="listed", remote="stated"),
robots="read: robots.txt allows /careers (checked 2026-09-29)",
)
@@ -95,12 +100,14 @@ def careers_url(slug: str) -> str:
def page(get: Get, slug: str, cursor: Any, ask: Ask) -> Page:
"""One page of `/api/pcsx/search` -> `{"status": 200, "data": {"positions":
[...], "count": n}}`; the next starts at the offset after this page's
positions, and an empty page ends the read."""
[...], "count": n}}`, in the one country `ask` names; the next starts at
the offset after this page's positions, and an empty page ends the read."""
host, domain = parts(slug)
start = int(cursor or 0)
country = name_of(ask.countries[0]) if ask.countries else ""
where = f"&location={quote(country)}" if country else ""
answer = json.loads(get(f"https://{host}/api/pcsx/search?domain={domain}"
f"&sort_by=timestamp&start={start}"))
f"&sort_by=timestamp&start={start}{where}"))
data = answer.get("data") if isinstance(answer, dict) else None
positions = data.get("positions") if isinstance(data, dict) else None
if not isinstance(positions, list):