cronscheduler

package
v0.0.0-...-6e30feb Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsynqPauseQueues

func AsynqPauseQueues(ctx context.Context) error

func AsynqUnpauseQueues

func AsynqUnpauseQueues(ctx context.Context) error

func InitFileServerDatabase

func InitFileServerDatabase()

func RunDisplayError

func RunDisplayError(ctx context.Context, session neo4j.SessionWithContext, statement string)

Types

type AsynqQueueState

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

func NewAsynqQueueState

func NewAsynqQueueState(ns directory.NamespaceID, timeout time.Duration) *AsynqQueueState

func (*AsynqQueueState) Run

func (qs *AsynqQueueState) Run()

type CronJobs

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

type Jobs

type Jobs struct {
	CronJobs           map[directory.NamespaceID]CronJobs
	CronJobsMutex      sync.Mutex
	ScheduledJobs      map[directory.NamespaceID]ScheduledJobs
	ScheduledJobsMutex sync.Mutex
}

type ScheduledJobs

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

type Scheduler

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

func NewScheduler

func NewScheduler() (*Scheduler, error)

func (*Scheduler) AddJobs

func (s *Scheduler) AddJobs(ctx context.Context) error

func (*Scheduler) Init

func (s *Scheduler) Init()

func (*Scheduler) RemoveJobs

func (s *Scheduler) RemoveJobs(ctx context.Context) error

func (*Scheduler) Run

func (s *Scheduler) Run()

Jump to

Keyboard shortcuts

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