taskoffload

package
v0.170.2 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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