scheduler

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTaskPayloadDelayMinutes

func ParseTaskPayloadDelayMinutes(payload string) int

Types

type Service

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

func NewService

func NewService(db *database.DB, jf *jellyfin.Client, backupSvc *backup.Service, mailer *mail.Mailer, notifier *notify.Notifier) *Service

func (*Service) RunTaskNow

func (s *Service) RunTaskNow(taskID int64) error

func (*Service) SetMailer

func (s *Service) SetMailer(m *mail.Mailer)

func (*Service) Start

func (s *Service) Start(ctx context.Context)

type TaskRecord

type TaskRecord struct {
	ID        int64  `json:"id"`
	Name      string `json:"name"`
	TaskType  string `json:"task_type"`
	Enabled   bool   `json:"enabled"`
	Hour      int    `json:"hour"`
	Minute    int    `json:"minute"`
	Payload   string `json:"payload"`
	LastRunAt string `json:"last_run_at"`
	CreatedBy string `json:"created_by"`
	CreatedAt string `json:"created_at"`
	UpdatedAt string `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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