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 ¶
ScheduleRequest : Adds notebook request in the queue
Click to show internal directories.
Click to hide internal directories.