worker

package
v0.0.0-...-5106b98 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountDeletionWorker

type AccountDeletionWorker struct {
	river.WorkerDefaults[jobs.AccountDeletionArgs]
	Service *accountclosuresvc.Service
}

func (*AccountDeletionWorker) Register

func (w *AccountDeletionWorker) Register(workers *river.Workers) error

func (*AccountDeletionWorker) Work

type CompletionDispatchRegistrar

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

func NewCompletionDispatchRegistrar

func NewCompletionDispatchRegistrar(dispatcher consumer.CompletionDispatcher) *CompletionDispatchRegistrar

func (*CompletionDispatchRegistrar) PeriodicJobs

func (*CompletionDispatchRegistrar) PeriodicJobs() ([]*river.PeriodicJob, error)

func (*CompletionDispatchRegistrar) Register

func (r *CompletionDispatchRegistrar) Register(workers *river.Workers) error

type ExecutionRegistrar

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

func NewExecutionRegistrar

func NewExecutionRegistrar(
	processor executiondelivery.Processor,
	maxWorkers int,
) (*ExecutionRegistrar, error)

func (*ExecutionRegistrar) Queues

func (r *ExecutionRegistrar) Queues() map[string]river.QueueConfig

func (*ExecutionRegistrar) Register

func (r *ExecutionRegistrar) Register(workers *river.Workers) error

type ProofObservationMaintenanceRegistrar

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

func NewProofObservationMaintenanceRegistrar

func NewProofObservationMaintenanceRegistrar(maintenance *proofevidencesvc.Maintenance, logger *slog.Logger) (*ProofObservationMaintenanceRegistrar, error)

func (*ProofObservationMaintenanceRegistrar) PeriodicJobs

func (*ProofObservationMaintenanceRegistrar) Register

type ProofPublicationRegistrar

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

func NewProofPublicationRegistrar

func NewProofPublicationRegistrar(processor consumer.ProofPublicationProcessor, logger *slog.Logger) (*ProofPublicationRegistrar, error)

func (*ProofPublicationRegistrar) Register

func (r *ProofPublicationRegistrar) Register(workers *river.Workers) error

type ProofWebhookRegistrar

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

func NewProofWebhookRegistrar

func NewProofWebhookRegistrar(processor consumer.ProofWebhookProcessor, logger *slog.Logger) (*ProofWebhookRegistrar, error)

func (*ProofWebhookRegistrar) Register

func (r *ProofWebhookRegistrar) Register(workers *river.Workers) error

type QueueConcurrency

type QueueConcurrency struct {
	PipelineGit            int
	Email                  int
	NotificationDelivery   int
	Events                 int
	EventMaintenance       int
	PipelineSchedule       int
	PipelineRetry          int
	PipelineRun            int
	DataSourceSchemaImport int
}

QueueConcurrency defines the maximum number of jobs each River queue can run concurrently in one process.

type Service

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

Service registers all background workers for the backend runtime.

func New

func New(
	pipelineGit consumer.PipelineGitExecutor,
	proposalRecorder consumer.PipelineGitProposalRecorder,
	proposalAuthorizer consumer.PipelineGitProposalAuthorizer,
	emailSvc email.Service,
	events eventService,
	eventPruner pruneExpiredCustomerDataService,
	scheduleDispatcher scheduleDispatchService,
	pipelineRunExecutor pipelineRunExecutionService,
	schemaImportExecutor dataSourceSchemaImportService,
	notificationDelivery consumer.NotificationDeliveryService,
	tokenCipher crypto.AES256,
	logger *slog.Logger,
	queueConcurrency QueueConcurrency,
	pipelineWebhookExecutor pipelineWebhookExecutionService,
) (*Service, error)

func (*Service) PeriodicJobs

func (s *Service) PeriodicJobs() ([]*river.PeriodicJob, error)

func (*Service) Queues

func (s *Service) Queues() map[string]river.QueueConfig

func (*Service) Register

func (s *Service) Register(workers *river.Workers) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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