scheduler

package
v1.12.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// RunResultFailed is the state of a failed run
	RunResultFailed = "failed"
	// RunResultSuccess is the state of a successful run
	RunResultSuccess = "success"

	TaskStateRunning   = "running"
	TaskStateScheduled = "scheduled"
)
View Source
const (
	URI_TO_ID_INDEX_ID         uint16 = 0
	ENTITY_ID_TO_JSON_INDEX_ID uint16 = 1
	INCOMING_REF_INDEX         uint16 = 2
	OUTGOING_REF_INDEX         uint16 = 3
	DATASET_ENTITY_CHANGE_LOG  uint16 = 4
	SYS_DATASETS_ID            uint16 = 5
	SYS_JOBS_ID                uint16 = 6
	SYS_DATASETS_SEQUENCES     uint16 = 7
	DATASET_LATEST_ENTITIES    uint16 = 8
	ID_TO_URI_INDEX_ID         uint16 = 9

	STORE_META_INDEX      uint16 = 10
	NAMESPACES_INDEX      uint16 = 11
	JOB_RESULT_INDEX      uint16 = 12
	JOB_DATA_INDEX        uint16 = 13
	JOB_CONFIGS_INDEX     uint16 = 14
	CONTENT_INDEX         uint16 = 15
	STORE_NEXT_DATASET_ID uint16 = 16
	LOGIN_PROVIDER_INDEX  uint16 = 17
)

Variables

This section is empty.

Functions

func ByteCountIEC

func ByteCountIEC(b int64) string

func NewGCUpdate

func NewGCUpdate(logger *zap.SugaredLogger, gc *server.GarbageCollector) schedulable

func NewStatisticsUpdater

func NewStatisticsUpdater(logger *zap.SugaredLogger, store store.BadgerStore) schedulable

Types

type RunResult

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

type Scheduler

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

func NewScheduler

func NewScheduler(logger *zap.SugaredLogger, gc *server.GarbageCollector, store store.BadgerStore) *Scheduler

func (*Scheduler) Start

func (s *Scheduler) Start() error

func (*Scheduler) Stop

func (s *Scheduler) Stop(ctx context.Context)

type Statistics

type Statistics struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func (*Statistics) Count added in v1.10.0

func (stats *Statistics) Count(ctx context.Context) map[string]any

func (*Statistics) Stop

func (stats *Statistics) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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