Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerMessage ¶
ConsumerMessage wraps a pulsar message and an identifier for the consumer which originally received the corresponding message. This exists because we need to track which messages came from which consumers so that we can ACK them on the correct consumer.
type ConsumerMessageId ¶
ConsumerMessageId wraps a pulsar message id and an identifier for the consumer which originally received the corresponding message. This exists because we need to track which messages came from which consumers so that we can ACK them on the correct consumer.
type CreateJobInstruction ¶
type CreateJobInstruction struct { JobId string Queue string Owner string JobSet string Priority uint32 Submitted time.Time JobJson []byte JobProto []byte State int64 Updated time.Time }
CreateJobInstruction is an instruction to insert a new row into the jobs table
type CreateJobRunContainerInstruction ¶
CreateJobRunContainerInstruction is an instruction to create a new entry in the jobRunContainerInstruction table
type CreateJobRunInstruction ¶
CreateJobRunInstruction is an instruction to update an existing row in the jobRuns table
type CreateUserAnnotationInstruction ¶
CreateUserAnnotationInstruction is an instruction to create a new entry in the UserAnnotationInstruction table
type InstructionSet ¶
type InstructionSet struct { JobsToCreate []*CreateJobInstruction JobsToUpdate []*UpdateJobInstruction JobRunsToCreate []*CreateJobRunInstruction JobRunsToUpdate []*UpdateJobRunInstruction UserAnnotationsToCreate []*CreateUserAnnotationInstruction JobRunContainersToCreate []*CreateJobRunContainerInstruction MessageIds []*ConsumerMessageId }
InstructionSet represents a set of instructions to apply to the database. Each type of instruction is stored in its own ordered list representign the order it was received. We also store the original message ids corresponding to these instructions so that when they are saved to the database, we can ACK the corresponding messages.