mirror of
https://gh-proxy.org/https://github.com/klinsmaya/multica.git
synced 2026-11-08 17:36:45 +08:00
* MUL-6582 feat(plugins): add durable scheduled hooks Co-authored-by: multica-agent <[email protected]> * MUL-6582: add schedule-pulse example plugin Ship a real scheduled plugin that records each unique delivery_id in workspace storage, so a host retry does not look like a second pulse. The cmd/server test installs this example manifest and drives two scheduler replicas through a dropped first attempt. Co-authored-by: multica-agent <[email protected]> * MUL-6582 fix(migrations): make schedule indexes retry-safe Co-authored-by: multica-agent <[email protected]> --------- Co-authored-by: multica-agent <[email protected]>
49 lines
1.2 KiB
JSON
49 lines
1.2 KiB
JSON
{
|
|
"manifest_version": 1,
|
|
"key": "ai.multica.schedule-pulse",
|
|
"name": "Schedule Pulse",
|
|
"description": "A scheduled Hook that Multica wakes every five minutes. Each unique delivery is recorded once in workspace storage, including when the host retries.",
|
|
"version": "1.0.0",
|
|
"author": {
|
|
"name": "multica",
|
|
"url": "https://multica.ai"
|
|
},
|
|
"scopes": [
|
|
"storage:workspace",
|
|
"net:pulse.example.com"
|
|
],
|
|
"contributes": {
|
|
"surfaces": [
|
|
{
|
|
"key": "pulse",
|
|
"type": "issue_panel",
|
|
"name": "Schedule pulse",
|
|
"entry": "ui/main.js",
|
|
"platforms": [
|
|
"web",
|
|
"desktop"
|
|
]
|
|
}
|
|
],
|
|
"hooks": [
|
|
{
|
|
"key": "pulse",
|
|
"name": "Schedule pulse",
|
|
"description": "Records one workspace-storage pulse per planned delivery. Retries of the same delivery_id do not increment the count.",
|
|
"triggers": [
|
|
"schedule"
|
|
],
|
|
"schedule": {
|
|
"cron": "*/5 * * * *",
|
|
"timezone": "UTC"
|
|
},
|
|
"transport": {
|
|
"type": "http",
|
|
"url": "https://pulse.example.com/hooks/pulse"
|
|
},
|
|
"timeout_ms": 8000
|
|
}
|
|
]
|
|
}
|
|
}
|