worker

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 14 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
}

func NewWorker

func NewWorker(configGetter config.ConfigGetter, instances *instances.Manager, clients *clients.Manager, repo *database.Repository) *Worker

func (*Worker) CleanupQueue

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

CleanupQueue checks all ARR instances for importPending items with empty folders and removes them from the queue after deleting the empty folder

func (*Worker) Start

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

Start starts the queue cleanup worker

func (*Worker) Stop

func (w *Worker) Stop(ctx context.Context)

Stop stops the queue cleanup worker

Jump to

Keyboard shortcuts

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