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 ...@@ -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*** so you can forcefully stop them at anytime. Lets run a simple function ***Every***
minute. minute.
First add to the package with `go get gitlab.com/kylehqcom/kevin`
``` ```
import( import(
"gitlab.com/kylehqcom/kevin" "gitlab.com/kylehqcom/kevin"
......
...@@ -175,6 +175,7 @@ func do(r *runner) { ...@@ -175,6 +175,7 @@ func do(r *runner) {
// RunnerInfo is a struct that contains runner instance information. // RunnerInfo is a struct that contains runner instance information.
type RunnerInfo struct { type RunnerInfo struct {
Status string Status string
Cap uint64
RunningCount uint64 RunningCount uint64
CompletedAt time.Time CompletedAt time.Time
StartedAt time.Time StartedAt time.Time
...@@ -185,6 +186,7 @@ type RunnerInfo struct { ...@@ -185,6 +186,7 @@ type RunnerInfo struct {
func (r *runner) Info() RunnerInfo { func (r *runner) Info() RunnerInfo {
return RunnerInfo{ return RunnerInfo{
Status: r.status, Status: r.status,
Cap: r.job.Cap,
RunningCount: r.runningCount, RunningCount: r.runningCount,
CompletedAt: r.completed, CompletedAt: r.completed,
StartedAt: r.started, 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