batchdb:用于排队批处理作业的 leveldb 和磁盘存储

时间:2021-06-11 23:16:54
【文件属性】:
文件名称:batchdb:用于排队批处理作业的 leveldb 和磁盘存储
文件大小:10KB
文件格式:ZIP
更新时间:2021-06-11 23:16:54
JavaScript 批处理数据库 将批处理作业排队并将结果流式传输到 Blob 存储 例子 添加工作 首先,我们可以添加一个作业。 添加作业既创建作业又将其推送到待处理队列中: var batchdb = require ( 'batchdb' ) ; var db = require ( 'level' ) ( '/tmp/compute.db' ) ; var compute = batchdb ( db , { path : '/tmp/compute.blobs' } ) ; compute . add ( ) . end ( 'sleep 5; date' ) ; compute . on ( 'create' , function ( key ) { console . log ( 'created' , key ) ; } ) ; compute . on ( 'push' , fu
【文件预览】:
batchdb-master
----readme.markdown(5KB)
----package.json(1014B)
----bin()
--------cmd.js(438B)
----.travis.yml(106B)
----LICENSE(1KB)
----index.js(8KB)
----example()
--------pending.js(185B)
--------add.js(339B)
--------run.js(467B)
--------results.js(184B)
--------jobs.js(181B)
----test()
--------run.js(3KB)
--------api.js(2KB)

网友评论