hyper-p2p-cron-gossip
Cron scheduling with cron-fire gossip over Hyperswarm.
Category: scheduling-queues
Protocol: cron-gossip/v1
When to use
Coordinating periodic jobs across peers and observing remote fires.
When not to use
One-shot deadline tasks (use hyper-p2p-deadline-queue).
Quick start
const { HyperP2PCronGossip } = require('hyper-p2p-cron-gossip')
const c = new HyperP2PCronGossip({ topic: process.argv[2] })
await c.ready()
c.schedule('@every 30s', 'heartbeat')
console.log(c.tick(Date.now()))
await c.close()
Docs
Test
npm install && npm test