Updates
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user