scheduler

package
v0.0.0-...-9a487e9 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const SchedulerWorkerCount = 5

SchedulerWorkerCount is the number of workers that will be started to process jobs

Variables

This section is empty.

Functions

func StartScheduler

func StartScheduler(adminDBConnectionPool db.DBConnectionPool, crashTrackerClient crashtracker.CrashTrackerClient, schedulerJobRegisters ...SchedulerJobRegisterOption)

StartScheduler initializes and starts the scheduler. This method blocks until the scheduler is stopped.

Types

type Scheduler

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

Scheduler manages a list of jobs and executes them at their specified intervals. It uses a job queue to distribute jobs to workers.

type SchedulerJobRegisterOption

type SchedulerJobRegisterOption func(*Scheduler)

func WithPatchAnchorPlatformTransactionsCompletionJobOption

func WithPatchAnchorPlatformTransactionsCompletionJobOption(paymentJobInterval int, apAPISvc anchorplatform.AnchorPlatformAPIServiceInterface, models *data.Models) SchedulerJobRegisterOption

func WithPaymentFromSubmitterJobOption

func WithPaymentFromSubmitterJobOption(paymentJobInterval int, models *data.Models, tssDBConnectionPool db.DBConnectionPool) SchedulerJobRegisterOption

func WithReadyPaymentsCancellationJobOption

func WithReadyPaymentsCancellationJobOption(models *data.Models) SchedulerJobRegisterOption

type SchedulerOptions

type SchedulerOptions struct {
	PaymentJobIntervalSeconds            int
	ReceiverInvitationJobIntervalSeconds int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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