|
|
|
@ -419,6 +419,10 @@ const runTasks = function (data, cb) {
|
|
|
|
|
Env.tasks.runAll(cb);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const writeTask = function (data, cb) {
|
|
|
|
|
Env.tasks.write(data.time, data.task_command, data.args, cb);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const COMMANDS = {
|
|
|
|
|
COMPUTE_INDEX: computeIndex,
|
|
|
|
|
COMPUTE_METADATA: computeMetadata,
|
|
|
|
@ -431,6 +435,7 @@ const COMMANDS = {
|
|
|
|
|
GET_HASH_OFFSET: getHashOffset,
|
|
|
|
|
REMOVE_OWNED_BLOB: removeOwnedBlob,
|
|
|
|
|
RUN_TASKS: runTasks,
|
|
|
|
|
WRITE_TASK: writeTask,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
COMMANDS.INLINE = function (data, cb) {
|
|
|
|
|