Documentation ¶
Index ¶
- type DBTX
- type GetJobDetailsRow
- type GetJobStatesRow
- type Job
- type JobRun
- type Queries
- func (q *Queries) GetJobDetails(ctx context.Context, jobIds []string) ([]GetJobDetailsRow, error)
- func (q *Queries) GetJobRunsByJobIds(ctx context.Context, jobIds []string) ([]JobRun, error)
- func (q *Queries) GetJobRunsByRunIds(ctx context.Context, runIds []string) ([]JobRun, error)
- func (q *Queries) GetJobStates(ctx context.Context, jobIds []string) ([]GetJobStatesRow, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type UserAnnotationLookup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetJobDetailsRow ¶ added in v0.4.24
type GetJobDetailsRow struct { JobID string `db:"job_id"` Queue string `db:"queue"` Jobset string `db:"jobset"` Namespace *string `db:"namespace"` State int16 `db:"state"` Submitted pgtype.Timestamp `db:"submitted"` Cancelled pgtype.Timestamp `db:"cancelled"` CancelReason *string `db:"cancel_reason"` LastTransitionTime pgtype.Timestamp `db:"last_transition_time"` LatestRunID *string `db:"latest_run_id"` JobSpec []byte `db:"job_spec"` }
type GetJobStatesRow ¶ added in v0.4.24
type Job ¶
type Job struct { JobID string `db:"job_id"` Queue string `db:"queue"` Owner string `db:"owner"` Jobset string `db:"jobset"` Cpu int64 `db:"cpu"` Memory int64 `db:"memory"` EphemeralStorage int64 `db:"ephemeral_storage"` Gpu int64 `db:"gpu"` Priority int64 `db:"priority"` Submitted pgtype.Timestamp `db:"submitted"` Cancelled pgtype.Timestamp `db:"cancelled"` State int16 `db:"state"` LastTransitionTime pgtype.Timestamp `db:"last_transition_time"` LastTransitionTimeSeconds int64 `db:"last_transition_time_seconds"` JobSpec []byte `db:"job_spec"` Duplicate bool `db:"duplicate"` PriorityClass *string `db:"priority_class"` LatestRunID *string `db:"latest_run_id"` CancelReason *string `db:"cancel_reason"` Namespace *string `db:"namespace"` Annotations []byte `db:"annotations"` }
type JobRun ¶
type JobRun struct { RunID string `db:"run_id"` JobID string `db:"job_id"` Cluster string `db:"cluster"` Node *string `db:"node"` Pending pgtype.Timestamp `db:"pending"` Started pgtype.Timestamp `db:"started"` Finished pgtype.Timestamp `db:"finished"` JobRunState int16 `db:"job_run_state"` Error []byte `db:"error"` ExitCode *int32 `db:"exit_code"` Leased pgtype.Timestamp `db:"leased"` }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) GetJobDetails ¶ added in v0.4.24
func (*Queries) GetJobRunsByJobIds ¶ added in v0.4.24
func (*Queries) GetJobRunsByRunIds ¶ added in v0.4.24
func (*Queries) GetJobStates ¶ added in v0.4.24
Click to show internal directories.
Click to hide internal directories.