mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-03-20 13:44:54 +00:00
This allows a user with full access to cancel pending/running jobs within the dispatcher system.
Required arguments: "job_id" : <ID string> or [<ID1>, <ID2>, etc..]
REST Request:
-------------------------------
PUT /rpc/dispatcher
{
"action" : "kill",
"job_id" : "sysadm_pkg_install-{9c079421-ace9-4b6e-8870-d023b48f4c49}"
}
WebSocket Request:
-------------------------------
{
"args" : {
"action" : "kill",
"job_id" : "sysadm_pkg_install-{9c079421-ace9-4b6e-8870-d023b48f4c49}"
},
"namespace" : "rpc",
"name" : "dispatcher",
"id" : "fooid"
}
Response:
-------------------------------
{
"args": {
"killed": {
"jobs": ["sysadm_pkg_install-{9c079421-ace9-4b6e-8870-d023b48f4c49}"]
}
},
"id": "fooid",
"name": "response",
"namespace": "rpc"
}