Versions in this module Expand all Collapse all v0 v0.12.3 Nov 9, 2026 Changes in this version + type Postgres struct + func NewPostgres(conf *config.Postgres) (*Postgres, error) + func (db *Postgres) ClaimExecution(ctx context.Context, taskID string, owner *events.ExecutionOwner) (bool, error) + func (db *Postgres) Close() + func (db *Postgres) DeleteNode(ctx context.Context, req *scheduler.Node) (*scheduler.DeleteNodeResponse, error) + func (db *Postgres) GetNode(ctx context.Context, req *scheduler.GetNodeRequest) (*scheduler.Node, error) + func (db *Postgres) GetTask(ctx context.Context, req *tes.GetTaskRequest) (*tes.Task, error) + func (db *Postgres) Init() error + func (db *Postgres) ListNodeCandidates(ctx context.Context, req *scheduler.ListNodesRequest) (*scheduler.ListNodesResponse, error) + func (db *Postgres) ListNodes(ctx context.Context, req *scheduler.ListNodesRequest) (*scheduler.ListNodesResponse, error) + func (db *Postgres) ListTasks(ctx context.Context, req *tes.ListTasksRequest) (*tes.ListTasksResponse, error) + func (db *Postgres) PutNode(ctx context.Context, node *scheduler.Node) (*scheduler.PutNodeResponse, error) + func (db *Postgres) ReadQueue(n int, after *tes.Task) []*tes.Task + func (db *Postgres) SetNodeState(ctx context.Context, observed *scheduler.Node) (*scheduler.Node, error) + func (db *Postgres) TryAssign(ctx context.Context, task *tes.Task, candidate *scheduler.Node) (string, error) + func (db *Postgres) WriteEvent(ctx context.Context, req *events.Event) error + type TaskCore struct + DataJSON []byte + ID string + Owner string + StateStr string