Documentation
¶
Index ¶
- func FromChangelogRow(row pgx.Row) (*changelog, error)
- func GetStore(urn string) (string, error)
- type Job
- type JobRepository
- func (j *JobRepository) GetAll(ctx context.Context, projectName tenant.ProjectName) ([]*scheduler.JobWithDetails, error)
- func (j *JobRepository) GetAllResolvedUpstreams(ctx context.Context) (map[scheduler.JobName][]scheduler.JobName, error)
- func (j *JobRepository) GetChangelogs(ctx context.Context, filter scheduler.ChangelogFilter) ([]*scheduler.Changelog, error)
- func (j *JobRepository) GetJob(ctx context.Context, projectName tenant.ProjectName, jobName scheduler.JobName) (*scheduler.Job, error)
- func (j *JobRepository) GetJobDetails(ctx context.Context, projectName tenant.ProjectName, jobName scheduler.JobName) (*scheduler.JobWithDetails, error)
- func (j *JobRepository) GetJobs(ctx context.Context, projectName tenant.ProjectName, jobs []string) ([]*scheduler.JobWithDetails, error)
- func (j *JobRepository) GetJobsByLabels(ctx context.Context, projectName tenant.ProjectName, labels map[string]string) ([]*scheduler.JobWithDetails, error)
- func (j *JobRepository) GetSummaryByNames(ctx context.Context, jobNames []scheduler.JobName) (map[scheduler.JobName]*scheduler.JobSummary, error)
- type JobRunRepository
- func (j *JobRunRepository) Create(ctx context.Context, t tenant.Tenant, jobName scheduler.JobName, ...) error
- func (j *JobRunRepository) GetByID(ctx context.Context, id scheduler.JobRunID) (*scheduler.JobRun, error)
- func (j *JobRunRepository) GetByScheduledAt(ctx context.Context, t tenant.Tenant, jobName scheduler.JobName, ...) (*scheduler.JobRun, error)
- func (j *JobRunRepository) GetByScheduledTimes(ctx context.Context, t tenant.Tenant, jobName scheduler.JobName, ...) ([]*scheduler.JobRun, error)
- func (j *JobRunRepository) GetLatestRun(ctx context.Context, project tenant.ProjectName, jobName scheduler.JobName, ...) (*scheduler.JobRun, error)
- func (j *JobRunRepository) GetPercentileDurationByJobNames(ctx context.Context, jobNames []scheduler.JobName, ...) (map[scheduler.JobName]*time.Duration, error)
- func (j *JobRunRepository) GetRunSummaryByIdentifiers(ctx context.Context, identifiers []scheduler.JobRunIdentifier) ([]*scheduler.JobRunSummary, error)
- func (j *JobRunRepository) GetRunsByInterval(ctx context.Context, project tenant.ProjectName, jobName scheduler.JobName, ...) ([]*scheduler.JobRun, error)
- func (j *JobRunRepository) GetRunsByTimeRange(ctx context.Context, project tenant.ProjectName, jobName scheduler.JobName, ...) ([]*scheduler.JobRun, error)
- func (j *JobRunRepository) Update(ctx context.Context, jobRunID uuid.UUID, endTime time.Time, ...) error
- func (j *JobRunRepository) UpdateMonitoring(ctx context.Context, jobRunID uuid.UUID, monitoringValues map[string]any) error
- func (j *JobRunRepository) UpdateSLA(ctx context.Context, jobName scheduler.JobName, projectName tenant.ProjectName, ...) error
- func (j *JobRunRepository) UpdateState(ctx context.Context, jobRunID uuid.UUID, status scheduler.State) error
- type JobUpstreams
- type Metadata
- type MetadataResource
- type MetadataResourceConfig
- type OperatorRunRepository
- func (o *OperatorRunRepository) CreateOperatorRun(ctx context.Context, name string, operatorType scheduler.OperatorType, ...) error
- func (o *OperatorRunRepository) GetOperatorRun(ctx context.Context, name string, operatorType scheduler.OperatorType, ...) (*scheduler.OperatorRun, error)
- func (o *OperatorRunRepository) UpdateOperatorRun(ctx context.Context, operatorType scheduler.OperatorType, ...) error
- type OperatorsSLA
- type ReplayRepository
- func (r ReplayRepository) AcquireReplayRequest(ctx context.Context, replayID uuid.UUID, ...) error
- func (r ReplayRepository) CancelReplayRequest(ctx context.Context, id uuid.UUID, message string) error
- func (r ReplayRepository) GetReplayByFilters(ctx context.Context, projectName tenant.ProjectName, ...) ([]*scheduler.ReplayWithRun, error)
- func (r ReplayRepository) GetReplayByID(ctx context.Context, replayID uuid.UUID) (*scheduler.ReplayWithRun, error)
- func (r ReplayRepository) GetReplayJobConfig(ctx context.Context, jobTenant tenant.Tenant, jobName scheduler.JobName, ...) (map[string]string, error)
- func (r ReplayRepository) GetReplayRequestByID(ctx context.Context, replayID uuid.UUID) (*scheduler.Replay, error)
- func (r ReplayRepository) GetReplayRequestsByStatus(ctx context.Context, statusList []scheduler.ReplayState) ([]*scheduler.Replay, error)
- func (r ReplayRepository) GetReplaysByProject(ctx context.Context, projectName tenant.ProjectName, dayLimits int) ([]*scheduler.Replay, error)
- func (r ReplayRepository) RegisterReplay(ctx context.Context, replay *scheduler.Replay, runs []*scheduler.JobRunStatus) (uuid.UUID, error)
- func (r ReplayRepository) ScanAbandonedReplayRequests(ctx context.Context, unhandledClassifierDuration time.Duration) ([]*scheduler.Replay, error)
- func (r ReplayRepository) UpdateReplay(ctx context.Context, id uuid.UUID, replayStatus scheduler.ReplayState, ...) error
- func (r ReplayRepository) UpdateReplayHeartbeat(ctx context.Context, id uuid.UUID) error
- func (r ReplayRepository) UpdateReplayRuns(ctx context.Context, id uuid.UUID, runs []*scheduler.JobRunStatus) error
- func (r ReplayRepository) UpdateReplayStatus(ctx context.Context, id uuid.UUID, replayStatus scheduler.ReplayState, ...) error
- type Retry
- type SLARepository
- func (s *SLARepository) FinishSLA(ctx context.Context, projectName tenant.ProjectName, ...) error
- func (s *SLARepository) GetExpiredSLAsForProcessing(ctx context.Context, signature string, processingDuration time.Duration) ([]*scheduler.OperatorsSLA, error)
- func (s *SLARepository) GetPredictedSLAJobNamesWithinTimeRange(ctx context.Context, from, to time.Time) ([]scheduler.JobName, error)
- func (s *SLARepository) RegisterSLA(ctx context.Context, projectName tenant.ProjectName, ...) error
- func (s *SLARepository) RemoveProcessedSLA(ctx context.Context, slaID uuid.UUID) error
- func (s *SLARepository) StorePredictedSLABreach(ctx context.Context, jobTargetName, jobCauseName scheduler.JobName, ...) error
- func (s *SLARepository) UpdateSLA(ctx context.Context, projectName tenant.ProjectName, ...) error
- type Schedule
- type ThirdPartyUpstream
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromChangelogRow ¶ added in v0.22.12
func FromChangelogRow(row pgx.Row) (*changelog, error)
Types ¶
type Job ¶
type Job struct {
ID uuid.UUID
Name string
Version int
Owner string
Description string
Labels map[string]string
Schedule json.RawMessage
WindowSpec json.RawMessage
Alert json.RawMessage
Webhook json.RawMessage
StaticUpstreams pq.StringArray
HTTPUpstreams json.RawMessage
TaskName string
TaskConfig json.RawMessage
Hooks json.RawMessage
Assets map[string]string
Metadata json.RawMessage
Destination string
Sources pq.StringArray
ProjectName string `json:"project_name"`
NamespaceName string `json:"namespace_name"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt sql.NullTime
}
type JobRepository ¶
type JobRepository struct {
// contains filtered or unexported fields
}
func NewJobProviderRepository ¶
func NewJobProviderRepository(pool *pgxpool.Pool) *JobRepository
func (*JobRepository) GetAll ¶
func (j *JobRepository) GetAll(ctx context.Context, projectName tenant.ProjectName) ([]*scheduler.JobWithDetails, error)
func (*JobRepository) GetAllResolvedUpstreams ¶ added in v0.22.4
func (*JobRepository) GetChangelogs ¶ added in v0.22.12
func (j *JobRepository) GetChangelogs(ctx context.Context, filter scheduler.ChangelogFilter) ([]*scheduler.Changelog, error)
func (*JobRepository) GetJob ¶
func (j *JobRepository) GetJob(ctx context.Context, projectName tenant.ProjectName, jobName scheduler.JobName) (*scheduler.Job, error)
func (*JobRepository) GetJobDetails ¶
func (j *JobRepository) GetJobDetails(ctx context.Context, projectName tenant.ProjectName, jobName scheduler.JobName) (*scheduler.JobWithDetails, error)
func (*JobRepository) GetJobs ¶ added in v0.8.0
func (j *JobRepository) GetJobs(ctx context.Context, projectName tenant.ProjectName, jobs []string) ([]*scheduler.JobWithDetails, error)
func (*JobRepository) GetJobsByLabels ¶ added in v0.22.4
func (j *JobRepository) GetJobsByLabels(ctx context.Context, projectName tenant.ProjectName, labels map[string]string) ([]*scheduler.JobWithDetails, error)
func (*JobRepository) GetSummaryByNames ¶ added in v0.22.4
func (j *JobRepository) GetSummaryByNames(ctx context.Context, jobNames []scheduler.JobName) (map[scheduler.JobName]*scheduler.JobSummary, error)
type JobRunRepository ¶
type JobRunRepository struct {
// contains filtered or unexported fields
}
func NewJobRunRepository ¶
func NewJobRunRepository(pool *pgxpool.Pool) *JobRunRepository
func (*JobRunRepository) GetByScheduledAt ¶
func (*JobRunRepository) GetByScheduledTimes ¶ added in v0.9.7
func (*JobRunRepository) GetLatestRun ¶ added in v0.17.0
func (*JobRunRepository) GetPercentileDurationByJobNames ¶ added in v0.22.4
func (*JobRunRepository) GetRunSummaryByIdentifiers ¶ added in v0.22.4
func (j *JobRunRepository) GetRunSummaryByIdentifiers(ctx context.Context, identifiers []scheduler.JobRunIdentifier) ([]*scheduler.JobRunSummary, error)
func (*JobRunRepository) GetRunsByInterval ¶ added in v0.19.0
func (*JobRunRepository) GetRunsByTimeRange ¶ added in v0.17.0
func (*JobRunRepository) UpdateMonitoring ¶
func (*JobRunRepository) UpdateSLA ¶
func (j *JobRunRepository) UpdateSLA(ctx context.Context, jobName scheduler.JobName, projectName tenant.ProjectName, scheduleTimes []time.Time) error
func (*JobRunRepository) UpdateState ¶ added in v0.7.0
type JobUpstreams ¶
type JobUpstreams struct {
JobID uuid.UUID
JobName string
ProjectName string
UpstreamJobID uuid.UUID
UpstreamJobName sql.NullString
UpstreamResourceUrn sql.NullString
UpstreamProjectName sql.NullString
UpstreamNamespaceName sql.NullString
UpstreamTaskName sql.NullString
UpstreamHost sql.NullString
UpstreamType string
UpstreamState string
UpstreamExternal sql.NullBool
CreatedAt time.Time
UpdatedAt time.Time
}
type Metadata ¶ added in v0.8.3
type Metadata struct {
Resource *MetadataResource
Scheduler map[string]string
}
type MetadataResource ¶ added in v0.8.3
type MetadataResource struct {
Request *MetadataResourceConfig
Limit *MetadataResourceConfig
}
type MetadataResourceConfig ¶ added in v0.8.3
type OperatorRunRepository ¶
type OperatorRunRepository struct {
// contains filtered or unexported fields
}
func NewOperatorRunRepository ¶
func NewOperatorRunRepository(pool *pgxpool.Pool) *OperatorRunRepository
func (*OperatorRunRepository) CreateOperatorRun ¶
func (*OperatorRunRepository) GetOperatorRun ¶
func (o *OperatorRunRepository) GetOperatorRun(ctx context.Context, name string, operatorType scheduler.OperatorType, jobRunID uuid.UUID) (*scheduler.OperatorRun, error)
func (*OperatorRunRepository) UpdateOperatorRun ¶
type OperatorsSLA ¶ added in v0.22.0
type OperatorsSLA struct {
ID uuid.UUID
JobName string
ProjectName string
OperatorName string
RunID string
OperatorType string
SLATime time.Time
AlertTag string
ScheduledAt time.Time
OperatorStartTime time.Time
WorkerSignature string
WorkerLockUntil time.Time
CreatedAt time.Time
UpdatedAt time.Time
}
func SLAFromRow ¶ added in v0.22.0
func SLAFromRow(row pgx.Row) (*OperatorsSLA, error)
type ReplayRepository ¶ added in v0.7.0
type ReplayRepository struct {
// contains filtered or unexported fields
}
func NewReplayRepository ¶ added in v0.7.0
func NewReplayRepository(db *pgxpool.Pool) *ReplayRepository
func (ReplayRepository) AcquireReplayRequest ¶ added in v0.17.0
func (ReplayRepository) CancelReplayRequest ¶ added in v0.17.0
func (ReplayRepository) GetReplayByFilters ¶ added in v0.16.1
func (r ReplayRepository) GetReplayByFilters(ctx context.Context, projectName tenant.ProjectName, filters ...filter.FilterOpt) ([]*scheduler.ReplayWithRun, error)
func (ReplayRepository) GetReplayByID ¶ added in v0.7.0
func (r ReplayRepository) GetReplayByID(ctx context.Context, replayID uuid.UUID) (*scheduler.ReplayWithRun, error)
func (ReplayRepository) GetReplayJobConfig ¶ added in v0.7.0
func (ReplayRepository) GetReplayRequestByID ¶ added in v0.17.0
func (ReplayRepository) GetReplayRequestsByStatus ¶ added in v0.7.0
func (r ReplayRepository) GetReplayRequestsByStatus(ctx context.Context, statusList []scheduler.ReplayState) ([]*scheduler.Replay, error)
func (ReplayRepository) GetReplaysByProject ¶ added in v0.7.0
func (r ReplayRepository) GetReplaysByProject(ctx context.Context, projectName tenant.ProjectName, dayLimits int) ([]*scheduler.Replay, error)
func (ReplayRepository) RegisterReplay ¶ added in v0.7.0
func (r ReplayRepository) RegisterReplay(ctx context.Context, replay *scheduler.Replay, runs []*scheduler.JobRunStatus) (uuid.UUID, error)
func (ReplayRepository) ScanAbandonedReplayRequests ¶ added in v0.17.0
func (ReplayRepository) UpdateReplay ¶ added in v0.7.0
func (r ReplayRepository) UpdateReplay(ctx context.Context, id uuid.UUID, replayStatus scheduler.ReplayState, runs []*scheduler.JobRunStatus, message string) error
func (ReplayRepository) UpdateReplayHeartbeat ¶ added in v0.17.2
func (ReplayRepository) UpdateReplayRuns ¶ added in v0.17.0
func (r ReplayRepository) UpdateReplayRuns(ctx context.Context, id uuid.UUID, runs []*scheduler.JobRunStatus) error
func (ReplayRepository) UpdateReplayStatus ¶ added in v0.7.0
func (r ReplayRepository) UpdateReplayStatus(ctx context.Context, id uuid.UUID, replayStatus scheduler.ReplayState, message string) error
type SLARepository ¶ added in v0.22.0
type SLARepository struct {
// contains filtered or unexported fields
}
func NewSLARepository ¶ added in v0.22.0
func NewSLARepository(pool *pgxpool.Pool) *SLARepository
func (*SLARepository) FinishSLA ¶ added in v0.22.0
func (s *SLARepository) FinishSLA(ctx context.Context, projectName tenant.ProjectName, jobName, operatorName, operatorType, runID string, operatorEndTime time.Time) error
func (*SLARepository) GetExpiredSLAsForProcessing ¶ added in v0.22.0
func (s *SLARepository) GetExpiredSLAsForProcessing(ctx context.Context, signature string, processingDuration time.Duration) ([]*scheduler.OperatorsSLA, error)
func (*SLARepository) GetPredictedSLAJobNamesWithinTimeRange ¶ added in v0.23.2
func (*SLARepository) RegisterSLA ¶ added in v0.22.0
func (*SLARepository) RemoveProcessedSLA ¶ added in v0.22.0
func (*SLARepository) StorePredictedSLABreach ¶ added in v0.22.8
type ThirdPartyUpstream ¶ added in v0.22.14
Click to show internal directories.
Click to hide internal directories.