Documentation
¶
Index ¶
- Constants
- func RunnerCapabilities() []string
- type NullLogger
- type Runner
- func (r *Runner) Declare(ctx context.Context, labels []string) (*connect.Response[runnerv1.DeclareResponse], error)
- func (r *Runner) OnIdle(ctx context.Context)
- func (r *Runner) Run(ctx context.Context, task *runnerv1.Task) error
- func (r *Runner) RunningCount() int64
- func (r *Runner) SetCapabilitiesFromDeclare(resp *connect.Response[runnerv1.DeclareResponse])
Constants ¶
const CapabilityCancelling = "cancelling"
CapabilityCancelling tells the server this runner understands the transitional cancelling state and will run post-step cleanup before finalizing a task as RESULT_CANCELLED.
Variables ¶
This section is empty.
Functions ¶
func RunnerCapabilities ¶
func RunnerCapabilities() []string
RunnerCapabilities are the capability flags this runner advertises to the server during registration and declaration. The server uses them to enable transitional features that require runner-side support.
Types ¶
type NullLogger ¶
type NullLogger struct{}
NullLogger is used to create a new JobLogger to discard logs. This will prevent these logs from being logged to the stdout, but forward them to the Reporter via its hook.
func (NullLogger) WithJobLogger ¶
func (n NullLogger) WithJobLogger() *log.Logger
WithJobLogger creates a new logrus.Logger that will discard all logs.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner runs the pipeline.
func (*Runner) OnIdle ¶
OnIdle performs lightweight maintenance during polling idle windows. It runs synchronously on the poller goroutine; shouldRunIdleCleanup throttles invocations to runner.idle_cleanup_interval so the impact on poll cadence is bounded even when the workdir root is large.
func (*Runner) RunningCount ¶
func (*Runner) SetCapabilitiesFromDeclare ¶
func (r *Runner) SetCapabilitiesFromDeclare(resp *connect.Response[runnerv1.DeclareResponse])