roledesk job extract reads open, unanswered roles 20 to a call and fills place, country, remote, seniority, salary, currency, function, permit and languages, only into columns the board left empty. Schema v2 adds roles.permit, roles.languages and roles.extract_tries. Off by default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
860 B
Python
26 lines
860 B
Python
"""The work roledesk queues. Importing this package registers every job.
|
|
|
|
pull.py read every configured plugin and store the roles it yields
|
|
extract.py title and description into the gate columns, on Haiku
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from roledesk.jobs import extract, pull
|
|
|
|
#: What `JobQueue(bootstrap=...)` and `pipeline.worker --bootstrap` are given.
|
|
BOOTSTRAP = "roledesk.jobs:bootstrap"
|
|
|
|
|
|
def bootstrap(config_path: str = "") -> tuple[object, object]:
|
|
"""roledesk's `(config, store)` from the config file alone, for a job run
|
|
in its own process or by `python -m pipeline.worker`."""
|
|
from roledesk import config as config_mod
|
|
from roledesk.storage import Store
|
|
|
|
config = config_mod.load(config_path or None)
|
|
return config, Store(config.database)
|
|
|
|
|
|
__all__ = ["BOOTSTRAP", "bootstrap", "extract", "pull"]
|