Resume paused scrapes from their cursor
This commit is contained in:
@@ -83,6 +83,7 @@ The daemon exposes MCP over Streamable HTTP. The default address is `http://127.
|
||||
| `list_media_scrapes` | Media scrapes with state, pages, messages, and counts. |
|
||||
| `get_media_scrape` | One scrape by ID. |
|
||||
| `stop_media_scrape` | Stop a scrape; it pauses after the current page. |
|
||||
| `resume_media_scrape` | Continue a paused scrape from its cursor. |
|
||||
| `get_media_storage` | Usage against the limit, per-kind sizes, and the scrape list. |
|
||||
| `query_media` | Media items across scrapes (`kind?`, `source?`, `scrapeId?`, `channelId?`, `limit?`, `offset?`). |
|
||||
| `get_media_item` | One media item by `scrapeId` and `itemId`. |
|
||||
|
||||
@@ -39,6 +39,9 @@ Rules:
|
||||
|
||||
- One running scrape at a time. Further requests queue.
|
||||
- `stop` marks the job and lets the current page finish.
|
||||
- `resume` continues a paused scrape from its stored cursor, so an interrupted walk does not fetch
|
||||
the pages it already has again. The History popup has a **Resume** button and the API a
|
||||
`POST /api/media/scrape/resume` route.
|
||||
- Every page is an outbound read. Sends from commands keep their own pacing.
|
||||
|
||||
## Pacing and backoff
|
||||
|
||||
@@ -272,6 +272,7 @@ replaceable.
|
||||
| GET | `/api/media/errors` | none | Bot and scrape errors, newest first |
|
||||
| POST | `/api/media/errors/clear` | none | Clear the error list |
|
||||
| POST | `/api/media/scrape/stop` | `id` | Stop a media scrape |
|
||||
| POST | `/api/media/scrape/resume` | `id` | Continue a paused scrape from its cursor |
|
||||
| POST | `/api/media/clean` | `ids?` | Delete the given scrapes, or every scrape when `ids` is absent |
|
||||
| GET | `/api/logs` | `limit` | The persistent action log |
|
||||
| GET | `/api/events` | none | Server-sent events |
|
||||
|
||||
Reference in New Issue
Block a user