Documentation ¶
Index ¶
- func CreateEventForCurrentState(pod *v1.Pod, clusterId string) (*armadaevents.EventSequence, error)
- func CreateJobFailedEvent(pod *v1.Pod, reason string, cause armadaevents.KubernetesReason, ...) (*armadaevents.EventSequence, error)
- func CreateJobIngressInfoEvent(pod *v1.Pod, clusterId string, associatedServices []*v1.Service, ...) (*armadaevents.EventSequence, error)
- func CreateJobUnableToScheduleEvent(pod *v1.Pod, reason string, clusterId string) (*armadaevents.EventSequence, error)
- func CreateJobUtilisationEvent(pod *v1.Pod, utilisationData *domain.UtilisationData, clusterId string) (*armadaevents.EventSequence, error)
- func CreateMinimalJobFailedEvent(jobIdStr string, runIdStr string, jobSet string, queue string, ...) (*armadaevents.EventSequence, error)
- func CreateReturnLeaseEvent(pod *v1.Pod, reason string, clusterId string, runAttempted bool) (*armadaevents.EventSequence, error)
- func CreateSimpleJobFailedEvent(pod *v1.Pod, reason string, clusterId string, ...) (*armadaevents.EventSequence, error)
- func CreateSimpleJobPreemptedEvent(pod *v1.Pod) (*armadaevents.EventSequence, error)
- type EventMessage
- type EventReporter
- type EventSender
- type ExecutorApiEventSender
- type JobEventReporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEventForCurrentState ¶
func CreateEventForCurrentState(pod *v1.Pod, clusterId string) (*armadaevents.EventSequence, error)
func CreateJobFailedEvent ¶
func CreateJobFailedEvent(pod *v1.Pod, reason string, cause armadaevents.KubernetesReason, containerStatuses []*armadaevents.ContainerError, clusterId string, ) (*armadaevents.EventSequence, error)
func CreateJobIngressInfoEvent ¶
func CreateJobIngressInfoEvent(pod *v1.Pod, clusterId string, associatedServices []*v1.Service, associatedIngresses []*networking.Ingress) (*armadaevents.EventSequence, error)
func CreateJobUnableToScheduleEvent ¶
func CreateJobUnableToScheduleEvent(pod *v1.Pod, reason string, clusterId string) (*armadaevents.EventSequence, error)
func CreateJobUtilisationEvent ¶
func CreateJobUtilisationEvent(pod *v1.Pod, utilisationData *domain.UtilisationData, clusterId string) (*armadaevents.EventSequence, error)
func CreateMinimalJobFailedEvent ¶ added in v0.4.36
func CreateMinimalJobFailedEvent(jobIdStr string, runIdStr string, jobSet string, queue string, clusterId string, message string) (*armadaevents.EventSequence, error)
func CreateReturnLeaseEvent ¶ added in v0.3.47
func CreateReturnLeaseEvent(pod *v1.Pod, reason string, clusterId string, runAttempted bool) (*armadaevents.EventSequence, error)
func CreateSimpleJobFailedEvent ¶
func CreateSimpleJobFailedEvent(pod *v1.Pod, reason string, clusterId string, cause armadaevents.KubernetesReason) (*armadaevents.EventSequence, error)
func CreateSimpleJobPreemptedEvent ¶ added in v0.3.57
func CreateSimpleJobPreemptedEvent(pod *v1.Pod) (*armadaevents.EventSequence, error)
Types ¶
type EventMessage ¶ added in v0.3.47
type EventMessage struct { Event *armadaevents.EventSequence JobRunId string }
type EventReporter ¶
type EventReporter interface { Report(events []EventMessage) error QueueEvent(event EventMessage, callback func(error)) }
type EventSender ¶ added in v0.3.47
type EventSender interface {
SendEvents(events []EventMessage) error
}
type ExecutorApiEventSender ¶ added in v0.3.47
type ExecutorApiEventSender struct {
// contains filtered or unexported fields
}
func NewExecutorApiEventSender ¶ added in v0.3.47
func NewExecutorApiEventSender( executorApiClient executorapi.ExecutorApiClient, maxMessageSize int, ) *ExecutorApiEventSender
func (*ExecutorApiEventSender) SendEvents ¶ added in v0.3.47
func (eventSender *ExecutorApiEventSender) SendEvents(events []EventMessage) error
type JobEventReporter ¶
type JobEventReporter struct {
// contains filtered or unexported fields
}
func NewJobEventReporter ¶
func NewJobEventReporter( clusterContext clusterContext.ClusterContext, jobRunState *job.JobRunStateStore, eventSender EventSender, clock clock.Clock, maxBatchSize int, ) (*JobEventReporter, chan bool)
func (*JobEventReporter) QueueEvent ¶
func (eventReporter *JobEventReporter) QueueEvent(event EventMessage, callback func(error))
func (*JobEventReporter) Report ¶
func (eventReporter *JobEventReporter) Report(events []EventMessage) error
func (*JobEventReporter) ReportMissingJobEvents ¶
func (eventReporter *JobEventReporter) ReportMissingJobEvents()
Click to show internal directories.
Click to hide internal directories.