Commit e9c3b41d authored by Kyle Clarke's avatar Kyle Clarke

Added the Cap value to the runner info struct. Also altered readme to list how to install Kevin.

parent de9f44e8
Pipeline #4589443 passed with stage
in 37 seconds
......@@ -19,6 +19,8 @@ But Kevin also keeps track of these jobs running asynchronously in go routines
so you can forcefully stop them at anytime. Lets run a simple function ***Every***
First add to the package with `go get`
......@@ -175,6 +175,7 @@ func do(r *runner) {
// RunnerInfo is a struct that contains runner instance information.
type RunnerInfo struct {
Status string
Cap uint64
RunningCount uint64
CompletedAt time.Time
StartedAt time.Time
......@@ -185,6 +186,7 @@ type RunnerInfo struct {
func (r *runner) Info() RunnerInfo {
return RunnerInfo{
Status: r.status,
Cap: r.job.Cap,
RunningCount: r.runningCount,
CompletedAt: r.completed,
StartedAt: r.started,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment