The ats boards only read companies someone listed, and the seed list is US-centred: 31 of 29,000 open roles were in Denmark. A `search` plugin runs saved queries on boards that span companies, pulled in the same task as the boards: Jobindex (Denmark, RSS, no key) and Adzuna (UK and most of the EU, free key, built to its documented API). Jobnet and Jooble were checked and left out. `country` is now filled from the board's location line by a lookup, with EU for Europe-wide roles, so country gates work without extract. `app companies prune --in` unsubscribes boards with no open role in a region. The starter agents and searches are Copenhagen and Europe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
1.5 KiB
Python
37 lines
1.5 KiB
Python
"""The work roledesk queues. Importing this package registers every job, every
|
|
task in `pipeline.TASKS` and the default schedule in `pipeline.SCHEDULES`.
|
|
|
|
pull.py read every board and search and store the roles they yield
|
|
extract.py title and description into the gate columns, on Haiku
|
|
embed.py one vector per open role, for fit
|
|
score.py every open role scored for every enabled search agent
|
|
cascade.py pull → extract → embed → score, what `TASKS` offers, the
|
|
`pull` job a schedule fires, and that schedule
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
from app.jobs import cascade, embed, extract, pull, score
|
|
from app.jobs.pull import search_target, seed_searches
|
|
from app.jobs.score import seed_agents
|
|
|
|
#: What `JobQueue(bootstrap=...)` and `pipeline.worker --bootstrap` are given.
|
|
BOOTSTRAP = "app.jobs:bootstrap"
|
|
|
|
|
|
def bootstrap(config_path: str = "") -> tuple[Any, Any]:
|
|
"""`(config, store)` from the config file alone, for a job run in its own
|
|
process or by `python -m pipeline.worker`. Importing this module is what
|
|
fills `JOBS`, which is why the worker is handed a name rather than a queue."""
|
|
from app import config as config_mod
|
|
from app.storage import Store
|
|
|
|
config = config_mod.load(config_path or None)
|
|
return config, Store(config.database)
|
|
|
|
|
|
__all__ = ["BOOTSTRAP", "bootstrap", "cascade", "embed", "extract", "pull", "score",
|
|
"search_target", "seed_agents", "seed_searches"]
|