1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

More work on integrating the script-task.

This commit is contained in:
Ylian Saint-Hilaire 2022-08-18 18:03:03 -07:00
parent 3aca17ea6d
commit 1b67b84369
10 changed files with 2120 additions and 14 deletions

View file

@ -1740,20 +1740,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
}
case 'script-task': {
// These command are for running regular batch jobs on the remote device
switch (command.subaction) {
case 'getScript': {
console.log('getScript');
break;
}
case 'clearAllPendingTasks': {
console.log('clearAllPendingTasks');
break;
}
case 'taskComplete': {
console.log('taskComplete');
break;
}
}
if (parent.parent.taskManager != null) { parent.parent.taskManager.agentAction(command, obj); }
break;
}
default: {