feat: add async job entrypoint for freshrss pipeline

This commit is contained in:
root
2026-04-11 22:12:11 +08:00
parent 10f9cd088f
commit c58d8114cd
8 changed files with 841 additions and 29 deletions
+24
View File
@@ -0,0 +1,24 @@
from __future__ import annotations
import argparse
import sys
from pathlib import Path
REPO_ROOT = Path(__file__).resolve().parents[1]
SRC_ROOT = REPO_ROOT / "src"
if str(SRC_ROOT) not in sys.path:
sys.path.insert(0, str(SRC_ROOT))
from summary_mcp.runtime.freshrss_pipeline_jobs import run_freshrss_pipeline_job
def main() -> None:
parser = argparse.ArgumentParser(description="Run a background FreshRSS pipeline job by job_id.")
parser.add_argument("--job-id", required=True, help="FreshRSS pipeline job id")
args = parser.parse_args()
run_freshrss_pipeline_job(job_id=args.job_id)
if __name__ == "__main__":
main()