schedules

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

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const NbSchedulerKey = "NBScheduler:Queues"

NbSchedulerKey : Notebook Scheduler Queue Database key

Variables

View Source
var SaveStateInterval = 60 // seconds

SaveStateInterval : Determines how often the state of botebook scheduler is backed up

View Source
var SweepInterval = 15 // minutes

SweepInterval : Time interval to sync state of wait and active list

Functions

This section is empty.

Types

type NotebookScheduler

type NotebookScheduler struct {

	// Active list of runnning notebooks
	Active map[uint64]interface{}

	// WaitList queue of notebook runs
	WaitList map[int]uint64
	// contains filtered or unexported fields
}

NotebookScheduler : Responsible for monitoring scheduled notebooks

func NewNotebookScheduler

func NewNotebookScheduler(q *qs.QueryServer, keeper *pods.Keeper, config *config.Config) *NotebookScheduler

NewNotebookScheduler : Returns New Instance of NotebookScheduler

func (*NotebookScheduler) ScheduleRequest

func (nb *NotebookScheduler) ScheduleRequest(user *types.User, pod *types.POD) (*types.POD, error)

ScheduleRequest : Adds notebook request in the queue

Jump to

Keyboard shortcuts

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