Documentation
¶
Overview ¶
Package inflight manages persisted tracking of active tasks.
Index ¶
- type Entry
- type Set
- func (set Set) Add(id string) error
- func (set Set) AddWithStart(id string, startedAt time.Time) error
- func (set Set) AddWithStartAndPath(id string, startedAt time.Time, worktreePath string, workerStateDir string, ...) error
- func (set Set) Contains(id string) bool
- func (set Set) Entry(id string) (Entry, bool)
- func (set Set) IDs() []string
- func (set Set) Remove(id string) error
- func (set Set) StartedAt(id string) (time.Time, bool)
- func (set Set) WorktreePath(id string) (string, bool)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
ID string `json:"id"`
StartedAt time.Time `json:"started_at,omitempty"`
Worktree string `json:"worktree_path,omitempty"`
WorkerStateDir string `json:"worker_state_dir,omitempty"`
Stage string `json:"stage,omitempty"`
Role string `json:"role,omitempty"`
}
Entry captures per-task in-flight metadata.
type Set ¶
Set tracks in-flight task IDs in memory along with metadata.
func (Set) AddWithStart ¶
AddWithStart tracks a task ID with the provided start time.
func (Set) AddWithStartAndPath ¶
func (set Set) AddWithStartAndPath(id string, startedAt time.Time, worktreePath string, workerStateDir string, stage string, role string) error
AddWithStartAndPath tracks a task ID with the provided start time, worktree path, worker state dir, stage, and role.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store provides access to persisted in-flight task tracking.
Click to show internal directories.
Click to hide internal directories.