taskoffload

package
v0.172.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirName = "parked-tasks"
)

Variables

This section is empty.

Functions

func NewID

func NewID() (string, error)

Types

type Record

type Record struct {
	SchemaVersion int       `json:"schema_version"`
	TaskID        string    `json:"task_id"`
	Task          string    `json:"task"`
	WorktreeDir   string    `json:"worktree_dir"`
	Repository    string    `json:"repository"`
	Harness       string    `json:"harness,omitempty"`
	Model         string    `json:"model,omitempty"`
	Target        string    `json:"target,omitempty"`
	Status        Status    `json:"status"`
	CreatedAt     time.Time `json:"created_at"`
}

type Status

type Status string
const (
	StatusParked  Status = "parked"
	StatusOffload Status = "offloaded"
)

type Store

type Store struct {
	Root string
}

func NewStore

func NewStore(root string) Store

func (Store) Load

func (s Store) Load(id string) (Record, string, error)

func (Store) Save

func (s Store) Save(record Record, contextBody string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL