write tasks inside of workers
This commit is contained in:
@@ -323,6 +323,15 @@ Workers.initialize = function (Env, config, _cb) {
|
||||
}, cb);
|
||||
};
|
||||
|
||||
Env.writeTask = function (time, command, args, cb) {
|
||||
sendCommand({
|
||||
command: 'WRITE_TASK',
|
||||
time: time,
|
||||
task_command: command,
|
||||
args: args,
|
||||
}, cb);
|
||||
};
|
||||
|
||||
// Synchronous crypto functions
|
||||
Env.validateMessage = function (signedMsg, key, cb) {
|
||||
sendCommand({
|
||||
|
||||
Reference in New Issue
Block a user