This commit is contained in:
Raven Scott
2026-05-20 23:14:20 -04:00
parent a2e7da7b5b
commit a020270cb1
11 changed files with 271 additions and 310 deletions
@@ -0,0 +1,11 @@
require('bare-process/global')
const { HyperP2PTaskOrchestrator } = require('../index.js')
async function main () {
const orch = new HyperP2PTaskOrchestrator()
await orch.ready()
const task = await orch.submitTask({ type: 'demo', payload: { n: 1 } })
console.log('[task-orchestrator]', task.taskId, orch.getMetrics())
await orch.close()
}
main().catch(console.error)