OXYGENHUB
◆ v0.9.16 oxygenhub / crates / hub / migrations / 0098_peer_images.sql
484 B · SQL · last changed Peer-held images: the hub keeps runners' manifests of images it lacks and places their jobs where a peer in the site holds them (closes #342; pins OxygenFlow #94) 9 days ago source blame history raw
1
-- Images only runners hold (oxygenflow#94, oxygenhub#342): a runner sends the
2
-- manifest of an image it holds that the hub keeps none of, and the swarm
3
-- moves the chunks between runners. `source` is 'hub' for an image pushed
4
-- here and verified whole, 'peer' for one only runners hold; `holder` names
5
-- the runner that sent a peer manifest.
6
ALTER TABLE jet_images ADD COLUMN source TEXT NOT NULL DEFAULT 'hub';
7
ALTER TABLE jet_images ADD COLUMN holder TEXT NOT NULL DEFAULT '';