"""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"]