Documentation ¶
Overview ¶
Schedule tasks to run on available resources assigned by master.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Assign ¶
func Assign(master string, request *pb.ComputeRequest) (*pb.AllocationResult, error)
Types ¶
type DatasetShardLocator ¶
func NewDatasetShardLocator ¶
func NewDatasetShardLocator() *DatasetShardLocator
func (*DatasetShardLocator) GetShardLocation ¶
func (l *DatasetShardLocator) GetShardLocation(shardName string) (pb.DataLocation, bool)
func (*DatasetShardLocator) SetShardLocation ¶
func (l *DatasetShardLocator) SetShardLocation(name string, location pb.DataLocation)
type RemoteExecutorStatus ¶
type Scheduler ¶
type Scheduler struct { sync.Mutex Master string EventChan chan interface{} Market *market.Market Option *SchedulerOption // contains filtered or unexported fields }
func NewScheduler ¶
func NewScheduler(leader string, option *SchedulerOption) *Scheduler
func (*Scheduler) DeleteOutout ¶
func (*Scheduler) ExecuteTaskGroup ¶
func (s *Scheduler) ExecuteTaskGroup(ctx context.Context, fc *flow.FlowContext, statusTaskGroup *pb.FlowExecutionStatus_TaskGroup, wg *sync.WaitGroup, taskGroup *plan.TaskGroup, bid float64)
ExecuteTaskGroup wait for inputs and execute the task group remotely. If cancelled, the output will be cleaned up.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.