excalibur_harvest_metrics
Operator-only: one cadence-aware metrics harvest sweep.
Drains due metrics_harvest_job rows (t+15m … t+28d), fetches X
non_public_metrics / organic_metrics under each patron's OAuth
context, and appends post_metrics_snapshot rows. A missed cadence is
permanent data loss — failed jobs retry up to 5 attempts then land in the
dead-letter queue; pass requeue_dead_id to retry one. Also runs as
phase 3 of every process_scheduled_posts tick.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| npub | No | The OPERATOR's npub (npub1...); this tool is operator-only. | |
| dpop_token | No | ||
| requeue_dead_id | No | Optional dead-letter job UUID to requeue before the sweep. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||