MCPcopy Index your code
hub / github.com/coder/coder / NewRunner

Function NewRunner

scaletest/taskstatus/run.go:57–66  ·  view source on GitHub ↗

NewRunner creates a new Runner with the provided codersdk.Client and configuration.

(coderClient *codersdk.Client, cfg Config)

Source from the content-addressed store, hash-verified

55
56// NewRunner creates a new Runner with the provided codersdk.Client and configuration.
57func NewRunner(coderClient *codersdk.Client, cfg Config) *Runner {
58 return &Runner{
59 client: newClient(coderClient),
60 updater: newAppStatusUpdater(coderClient),
61 cfg: cfg,
62 clock: quartz.NewReal(),
63 randFloat64: rand.Float64,
64 reportTimes: make(map[int]time.Time),
65 }
66}
67
68func (r *Runner) Run(ctx context.Context, name string, logs io.Writer) error {
69 shouldMarkConnectedDone := true

Callers 1

scaletestTaskStatusMethod · 0.92

Calls 2

newClientFunction · 0.85
newAppStatusUpdaterFunction · 0.85

Tested by

no test coverage detected