autobuild
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package autobuild contains logic for scheduling workspacebuilds in the background.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeExecutor¶
type Executor struct {// contains filtered or unexported fields}
Executor automatically starts or stops workspaces.
funcNewExecutor¶
func NewExecutor(ctxcontext.Context, dbdatabase.Store, tss *atomic.Pointer[schedule.TemplateScheduleStore], logslog.Logger, tick <-chantime.Time) *Executor
New returns a new wsactions executor.
func (*Executor)Run¶
func (e *Executor) Run()
Run will cause executor to start or stop workspaces on everytick from its channel. It will stop when its context is Done, or whenits channel is closed.
func (*Executor)WithStatsChannel¶
WithStatsChannel will cause Executor to push a RunStats to ch afterevery tick.