42c0392a2006c9195b50f3f761ffbe619d661101
GhostRunner
This project aims to create a way to schedule commands to be run as soon as possible when they offline initialy.
The way to accomplish this is to create a tracked task list, and keep track of it has been successfully done.
Technical details.
Go(lang) backend server which exposes an HTTP API which can be used to add tasks to the process.
Python executor/runner which actually executes the commands, Python was chosen because of the availability of: LibMeshCtrl Python Library.
JSON Templates:
TokenBody:
{
"tokenname": "NewUsableToken",
"authtoken": "admintokengoeshereofcourse",
"selectedtoken": "thetokenyouwanttoremove"
}
TaskBody:
{
"name": "DeployTask",
"authtoken": "abc123securetoken",
"data": {
"command": "deploy-app",
"nodeids": "node1,node2,node3"
}
}
Description
Languages
Go
83.5%
Python
15.2%
Shell
1.3%