Implement minimal resume_run for freshrss runs
This commit is contained in:
@@ -20,6 +20,7 @@ from summary_mcp.runtime import get_run_status as load_run_status
|
||||
from summary_mcp.runtime import get_run_report as load_run_report
|
||||
from summary_mcp.runtime import list_run_artifacts as load_run_artifacts
|
||||
from summary_mcp.runtime import list_runs as load_runs
|
||||
from summary_mcp.runtime.resume_service import resume_run as resume_existing_run
|
||||
from summary_mcp.workflows import run_freshrss_pipeline
|
||||
from summary_mcp.workflows.article_summary import ArticleSummaryConfig, summarize_selected_articles
|
||||
|
||||
@@ -158,6 +159,12 @@ def get_run_report(run_id: str) -> dict:
|
||||
return load_run_report(run_id=run_id)
|
||||
|
||||
|
||||
@mcp.tool()
|
||||
def resume_run(run_id: str) -> dict:
|
||||
"""Resume a failed or interrupted FreshRSS workflow run from its latest supported recovery point."""
|
||||
return resume_existing_run(run_id=run_id)
|
||||
|
||||
|
||||
@mcp.tool()
|
||||
def generate_article_summaries(
|
||||
*,
|
||||
|
||||
Reference in New Issue
Block a user