Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateJobInstruction ¶
type CreateJobInstruction struct { JobId string Queue string Owner string JobSet string Priority uint32 Submitted time.Time 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 []*pulsarutils.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.