feature: Kill support in the UI (#297)

* feature: Kill command API (wip)

* feature: Kill support in the UI
This commit is contained in:
James Read
2024-04-27 22:51:45 +01:00
committed by GitHub
parent a783fc8cd4
commit dc6f6c2896
7 changed files with 87 additions and 8 deletions

View File

@@ -74,6 +74,7 @@ type InternalLogEntry struct {
ExecutionStarted bool
ExecutionFinished bool
ExecutionTrackingID string
Process *os.Process
/*
The following 3 properties are obviously on Action normally, but it's useful
@@ -382,6 +383,8 @@ func stepExec(req *ExecutionRequest) bool {
runerr := cmd.Start()
req.logEntry.Process = cmd.Process
waiterr := cmd.Wait()
req.logEntry.ExitCode = int32(cmd.ProcessState.ExitCode())