Documentation
¶
Index ¶
- func CreateJobRunContainers(ctx context.Context, db *pgxpool.Pool, ...)
- func CreateJobRunContainersBatch(ctx context.Context, db *pgxpool.Pool, ...) error
- func CreateJobRunContainersScalar(ctx context.Context, db *pgxpool.Pool, ...)
- func CreateJobRuns(ctx context.Context, db *pgxpool.Pool, ...)
- func CreateJobRunsBatch(ctx context.Context, db *pgxpool.Pool, ...) error
- func CreateJobRunsScalar(ctx context.Context, db *pgxpool.Pool, ...)
- func CreateJobs(ctx context.Context, db *pgxpool.Pool, ...)
- func CreateJobsBatch(ctx context.Context, db *pgxpool.Pool, ...) error
- func CreateJobsScalar(ctx context.Context, db *pgxpool.Pool, ...)
- func CreateUserAnnotations(ctx context.Context, db *pgxpool.Pool, ...)
- func CreateUserAnnotationsBatch(ctx context.Context, db *pgxpool.Pool, ...) error
- func CreateUserAnnotationsScalar(ctx context.Context, db *pgxpool.Pool, ...)
- func ProcessUpdates(ctx context.Context, db *pgxpool.Pool, msgs chan *model.InstructionSet, ...) chan []*model.ConsumerMessageId
- func Update(ctx context.Context, db *pgxpool.Pool, instructions *model.InstructionSet)
- func UpdateJobRuns(ctx context.Context, db *pgxpool.Pool, ...)
- func UpdateJobRunsBatch(ctx context.Context, db *pgxpool.Pool, ...) error
- func UpdateJobRunsScalar(ctx context.Context, db *pgxpool.Pool, ...)
- func UpdateJobs(ctx context.Context, db *pgxpool.Pool, ...)
- func UpdateJobsBatch(ctx context.Context, db *pgxpool.Pool, ...) error
- func UpdateJobsScalar(ctx context.Context, db *pgxpool.Pool, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateJobRunContainers ¶
func CreateJobRuns ¶
func CreateJobRunsBatch ¶
func CreateJobRunsScalar ¶
func CreateJobs ¶
func CreateJobsBatch ¶
func CreateJobsScalar ¶
func CreateJobsScalar(ctx context.Context, db *pgxpool.Pool, instructions []*model.CreateJobInstruction)
CreateJobsScalar will insert jobs one by one into the database
func CreateUserAnnotations ¶
func ProcessUpdates ¶
func ProcessUpdates(ctx context.Context, db *pgxpool.Pool, msgs chan *model.InstructionSet, bufferSize int) chan []*model.ConsumerMessageId
ProcessUpdates will update the lookout database according to the incoming channel of instructions. It returns a channel containing all the message ids that have been successfully processed.
func Update ¶
Update updates the lookout database according to the supplied InstructionSet. The updates are applied in the following order: * New Job Creations * Job Updates, New Job Creations, New User Annotations * Job Run Updates, New Job Containers In each case we first try to bach insert the rows using the postgres copy protocol. If this fails then we try a slower, serial insert and discard any rows that cannot be inserted. TODO: identify transient errors (e.g. database down) and retry until resolved
func UpdateJobRuns ¶
func UpdateJobRunsBatch ¶
func UpdateJobRunsScalar ¶
func UpdateJobs ¶
func UpdateJobsBatch ¶
func UpdateJobsScalar ¶
Types ¶
This section is empty.