Documentation ¶
Overview ¶
Schedule tasks to run on available resources assigned by master.
Index ¶
- func SendCleanupRequest(server string, request *pb.CleanupRequest) error
- type DatasetShardLocator
- type Option
- type RemoteExecutorStatus
- type Scheduler
- func (s *Scheduler) DeleteOutput(taskGroup *plan.TaskGroup)
- func (s *Scheduler) ExecuteTaskGroup(ctx context.Context, fc *flow.Flow, ...)
- func (s *Scheduler) Fetch(demands []market.Demand)
- func (s *Scheduler) GetShardLocation(shard *flow.DatasetShard) (pb.DataLocation, bool)
- func (s *Scheduler) Score(r market.Requirement, bid float64, obj market.Object) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendCleanupRequest ¶
func SendCleanupRequest(server string, request *pb.CleanupRequest) 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 *Option // contains filtered or unexported fields }
func (*Scheduler) DeleteOutput ¶
func (*Scheduler) ExecuteTaskGroup ¶
func (s *Scheduler) ExecuteTaskGroup(ctx context.Context, fc *flow.Flow, taskGroupStatus *pb.FlowExecutionStatus_TaskGroup, wg *sync.WaitGroup, taskGroup *plan.TaskGroup, bid float64, relatedFiles []resource.FileResource, binaryPath string)
ExecuteTaskGroup wait for inputs and execute the task group remotely. If cancelled, the output will be cleaned up.
func (*Scheduler) GetShardLocation ¶
func (s *Scheduler) GetShardLocation(shard *flow.DatasetShard) (pb.DataLocation, bool)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.