worker

package
v0.10.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

Worker processes jobs from the queue

func New

func New(q queue.Queue, exec executor.Executor, svc *service.WorkspaceService, jobSvc *service.JobService, logger *slog.Logger, valkeyClient valkey.Client) *Worker

New creates a new worker instance

func (*Worker) GetBroker

func (w *Worker) GetBroker() *logstream.LogBroker

GetBroker returns the log broker for external access (SSE endpoints)

func (*Worker) Start

func (w *Worker) Start(ctx context.Context) error

Start begins processing jobs from the queue

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL