Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.28 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.28 KB

Silex GO Kill Process

made-with-Go GitHub go.mod Go version of a Go module

Webserver running locally, listenning on port 5119 to kill process by pid.

Why ?

In our pipeline, when user whant to kill job runnings on her computer, sometimes tractor cant kill remotely this jobs. So Jobs are running as user system on computer and user don't have enough access to kill mannually the jobs.

This app is deployed as windows services in user system, with this setup, we just have to send a post webrequest with the pid as param and we can kill the jobs.

Usage

post: http://localhost:1159/kill/{YOUR_PID}
get: http://localhost:1159/processes

Using postman

Usage in our pipeline

Using sc.exe to convert .exe to windows service

You can find the deployement script here