Files
jobboard/roledesk/jobs/pull.py
T
WolfandClaude Opus 5.5 36dbcbb29e Skeleton: roledesk on desk and pipeline from ../news
Package layers models, config, storage, jobs, web, cli, held by
tests/test_architecture.py with desk and pipeline as external trees and
plugins/ limited to desk. roles.yaml is the default config, roledesk.db
its own file, port 8790. create_app mounts pipeline.web.connect over
Jobs(config.database); `roledesk job pull` drains a no-op pull and
`roledesk db init` creates the file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 10:59:17 +02:00

19 lines
556 B
Python

"""`pull`: read every configured plugin. A no-op until the first plugin lands."""
from __future__ import annotations
import logging
from typing import Any
from pipeline import NULL, RunContext, job
from roledesk.config import Config
from roledesk.storage import Store
log = logging.getLogger(__name__)
@job("pull", "Reading every board", resource="http", solo=True)
def run(config: Config, store: Store, *, context: RunContext = NULL) -> dict[str, Any]:
log.info("pull: no plugin is installed yet")
return {"sources": 0, "seen": 0, "new": 0}