-
-
Notifications
You must be signed in to change notification settings - Fork 74
Cloudflare Cron Trigger wake scheduling for hosted AMS containers #7182
Copy link
Copy link
Open
Labels
gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is neededExtra attention is neededmaintainer-onlyOwner-only work — yields no Gittensor points.Owner-only work — yields no Gittensor points.
Milestone
Description
Metadata
Metadata
Assignees
Labels
gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is neededExtra attention is neededmaintainer-onlyOwner-only work — yields no Gittensor points.Owner-only work — yields no Gittensor points.
Projects
StatusShow more project fields
Todo
Problem
AMS has no webhook receiver — it's a CLI/batch tool whose closest thing to "always on" is the self-scheduling `loop` subcommand, or cron/systemd-timer-invoked one-shot `discover`/`manage poll` runs (confirmed via direct code read: no HTTP listener anywhere in `bin/loopover-miner.js`). Hosted AMS containers need something to wake them on the right cadence, since nothing pushes events to them the way GitHub webhooks push to ORB.
Area
The shared control-plane service (#7173).
Proposal
A Cloudflare Cron Trigger fires on a per-tenant schedule, wakes that tenant's (sleeping, zero-cost) container, and runs one `discover`/`attempt`/`manage poll` cycle before letting it sleep again — mirroring AMS's own documented unattended-scheduling pattern (`packages/loopover-miner/docs/unattended-scheduling.md`), just centrally orchestrated instead of operator-run cron/systemd. This is cheaper to operate than ORB's model, since an AMS container never needs to stay warm waiting for an event.
Deliverables
Boundaries
Links & Resources
packages/loopover-miner/docs/unattended-scheduling.md— the pattern this mirrors