scheduler

package
v0.235.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Overview

Package scheduler contains code for the scheduler backend that handles managing background jobs for the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	quartz.Scheduler
	// contains filtered or unexported fields
}

Manager contains data for managing a scheduler instance.

func NewManager added in v0.24.0

func NewManager(ctx context.Context) (*Manager, error)

NewManager will create a new manager object containing the scheduler and job queue.

func (*Manager) InitAdminJobs added in v0.235.0

func (m *Manager) InitAdminJobs(ctx context.Context) error

InitAdminJobs loads the listed jobs into the scheduler. These are administrative jobs that should always be scheduled.

func (*Manager) LoadUpdateFeedJobs added in v0.235.0

func (m *Manager) LoadUpdateFeedJobs(ctx context.Context, feedSvc *service.FeedService) error

func (*Manager) Run added in v0.235.0

func (m *Manager) Run(ctx context.Context) error

Run starts the scheduler manager.

func (*Manager) UpdateSerializedJob added in v0.235.0

func (m *Manager) UpdateSerializedJob(ctx context.Context, job *jobs.SerializedJob) error

Directories

Path Synopsis
Package jobs provides primitives to interact with the openapi HTTP API.
Package jobs provides primitives to interact with the openapi HTTP API.
Package queue implements a quartz.JobQueue using Elasticsearch as the storage backend.
Package queue implements a quartz.JobQueue using Elasticsearch as the storage backend.

Jump to

Keyboard shortcuts

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