worker

package
v2.7.0-nightly.20230526 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	APIServer *server.APIServer // Provides rpcs for other nodes in the cluster
	// contains filtered or unexported fields
}

The Worker object represents

func NewWorker

func NewWorker(
	ctx context.Context,
	env serviceenv.ServiceEnv,
	pachClient *client.APIClient,
	pipelineInfo *pps.PipelineInfo,
	rootPath string,
) (*Worker, error)

NewWorker constructs a Worker object that provides all worker functionality:

  1. a master goroutine that attempts to obtain the master lock for the pipeline workers and direct jobs
  2. a worker goroutine that gets tasks from the master and processes them
  3. an api server that serves requests for status or cross-worker communication
  4. a driver that provides common functionality between the above components

Directories

Path Synopsis
pipeline

Jump to

Keyboard shortcuts

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