sink

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FairShareRow

type FairShareRow struct {
	Ts                int64   `parquet:"name=ts, type=INT64"`
	Queue             string  `parquet:"name=queue, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"`
	Pool              string  `parquet:"name=pool, type=BYTE_ARRAY, convertedtype=UTF8"`
	FairShare         float64 `parquet:"name=fair_share, type=DOUBLE"`
	AdjustedFairShare float64 `parquet:"name=adjusted_fair_share, type=DOUBLE"`
	ActualShare       float64 `parquet:"name=actual_share, type=DOUBLE"`
}

type FairShareWriter

type FairShareWriter struct {
	// contains filtered or unexported fields
}

func NewFairShareWriter

func NewFairShareWriter(path string) (*FairShareWriter, error)

func (*FairShareWriter) Close

func (j *FairShareWriter) Close(ctx *armadacontext.Context)

func (*FairShareWriter) Update

func (j *FairShareWriter) Update(result *scheduling.SchedulerResult) error

type JobRunRow

type JobRunRow struct {
	Queue            string  `parquet:"name=queue, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"`
	JobSet           string  `parquet:"name=job_set, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"`
	JobId            string  `parquet:"name=job_id, type=BYTE_ARRAY, convertedtype=UTF8"`
	RunId            string  `parquet:"name=run_id, type=BYTE_ARRAY, convertedtype=UTF8"`
	PriorityClass    string  `parquet:"name=priority_class, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"`
	Cpu              float64 `parquet:"name=cpu, type=DOUBLE"`
	Memory           float64 `parquet:"name=memory, type=DOUBLE"`
	Gpu              float64 `parquet:"name=gpu, type=DOUBLE"`
	EphemeralStorage float64 `parquet:"name=ephemeral_storage, type=DOUBLE"`
	ExitCode         int     `parquet:"name=exit_code, type=INT32"`
	State            string  `parquet:"name=state, type=BYTE_ARRAY, convertedtype=UTF8, encoding=PLAIN_DICTIONARY"`
	SubmittedTime    int64   `parquet:"name=submitted_time, type=INT64"`
	ScheduledTime    int64   `parquet:"name=scheduled_time, type=INT64"`
	FinishedTime     int64   `parquet:"name=finished_time, type=INT64"`
}

type JobWriter

type JobWriter struct {
	// contains filtered or unexported fields
}

func NewJobWriter

func NewJobWriter(path string) (*JobWriter, error)

func (*JobWriter) Close

func (j *JobWriter) Close(ctx *armadacontext.Context)

func (*JobWriter) Update

func (j *JobWriter) Update(st *model.StateTransition) error

type NullSink

type NullSink struct{}

func (NullSink) Close

func (s NullSink) Close(ctx *armadacontext.Context)

func (NullSink) OnCycleEnd

func (s NullSink) OnCycleEnd(_ *scheduling.SchedulerResult) error

func (NullSink) OnNewStateTransitions

func (s NullSink) OnNewStateTransitions(_ []*model.StateTransition) error

type ParquetSink

type ParquetSink struct {
	// contains filtered or unexported fields
}

func NewParquetSink

func NewParquetSink(outputDir string) (*ParquetSink, error)

func (*ParquetSink) Close

func (s *ParquetSink) Close(ctx *armadacontext.Context)

func (*ParquetSink) OnCycleEnd

func (s *ParquetSink) OnCycleEnd(result *scheduling.SchedulerResult) error

func (*ParquetSink) OnNewStateTransitions

func (s *ParquetSink) OnNewStateTransitions(transitions []*model.StateTransition) error

type Sink

type Sink interface {
	OnNewStateTransitions(transitions []*model.StateTransition) error
	OnCycleEnd(result *scheduling.SchedulerResult) error
	Close(ctx *armadacontext.Context)
}

Jump to

Keyboard shortcuts

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