sync_status
Poll a sync job started by sync_start.
Instructions
Poll a sync job started by sync_start.
Returns state ('pending' | 'running' | 'succeeded' | 'failed'), counts (scanned/ingested/skipped/moved/deleted/relabelled/unreadable/ failed), and any per-file errors. Only the latest job is retained — an old jobId, or any jobId from before a server restart, raises an error.
relabelled counts documents whose labels were rewritten from their stored text, with nothing re-embedded: classify.toml changed, a move put a file under other path rules, or the model answered after a model problem had left a facet unanswered. It stays 0 without a classify.toml. A labelling problem appears in errors with its message prefixed "labels:"; it is not a failure.
unreadable counts indexed sources this installation cannot read because an optional extra is absent (images need [ocr]); each one appears in errors saying it was kept rather than deleted, but it is not a failure and does not make the job fail.
A folder the scan could not see into (a missing root, one without read permission, an empty folder where a root was mounted) also appears in errors, and nothing indexed under it is deleted. It counts as failed when it is a root, when indexed files are under it, or when the sync was started for it or for a path inside it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||