grpc

package
v4.0.0-beta4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Overview

Package grpc provides a gRPC service to access the store for scheduler job definitions.

Index

Constants

Variables

View Source
var (
	Migration140 = false
	Migration150 = false
	Migration230 = false
)

Functions

This section is empty.

Types

type JobsHandler

type JobsHandler struct {
	proto.UnimplementedJobServiceServer
	proto.UnimplementedTaskServiceServer
	logcore.Handler
	// contains filtered or unexported fields
}

JobsHandler implements the JobService API

func NewJobsHandler

func NewJobsHandler(runtime context.Context, store jobs.DAO, messageRepository log3.MessageRepository) *JobsHandler

NewJobsHandler creates a new JobsHandler

func (*JobsHandler) CleanStuckTasks

func (j *JobsHandler) CleanStuckTasks(ctx context.Context, duration ...time.Duration) ([]*proto.Task, error)

CleanStuckTasks may be run at startup to

func (*JobsHandler) Close

func (j *JobsHandler) Close()

func (*JobsHandler) DeleteJob

func (*JobsHandler) DeleteLogsFor

func (j *JobsHandler) DeleteLogsFor(ctx context.Context, job string, tasks ...string) (int64, error)

func (*JobsHandler) DeleteTasks

func (*JobsHandler) DetectStuckTasks

func (*JobsHandler) GetJob

func (j *JobsHandler) GetJob(ctx context.Context, request *proto.GetJobRequest) (*proto.GetJobResponse, error)

func (*JobsHandler) ListJobs

func (j *JobsHandler) ListJobs(request *proto.ListJobsRequest, streamer proto.JobService_ListJobsServer) error

func (*JobsHandler) ListTasks

func (j *JobsHandler) ListTasks(request *proto.ListTasksRequest, streamer proto.JobService_ListTasksServer) error

func (*JobsHandler) Name

func (j *JobsHandler) Name() string

func (*JobsHandler) PutJob

func (j *JobsHandler) PutJob(ctx context.Context, request *proto.PutJobRequest) (*proto.PutJobResponse, error)

func (*JobsHandler) PutTask

func (j *JobsHandler) PutTask(ctx context.Context, request *proto.PutTaskRequest) (*proto.PutTaskResponse, error)

func (*JobsHandler) PutTaskStream

func (j *JobsHandler) PutTaskStream(streamer proto.JobService_PutTaskStreamServer) error

Jump to

Keyboard shortcuts

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