Help us shape the future of Go! Take the 2026 Go Developer Survey

memoryjobs

package
v0.13.21 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package memoryjobs owns durable background learning jobs. Hosts provide evidence/model callbacks and short-lived permission to use idle capacity.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback struct{ URL, Token string }

type Service

type Service struct {
	// contains filtered or unexported fields
}

func Open

func Open(ctx context.Context, path string, callbacks map[string]Callback) (*Service, error)

func (*Service) Close

func (s *Service) Close() error

func (*Service) Jobs

func (s *Service) Jobs(ctx context.Context, app, bank string) ([]sdk.MemoryLearningJob, error)

func (*Service) Retry

func (s *Service) Retry(ctx context.Context, app, id string) error

func (*Service) Run

func (s *Service) Run(ctx context.Context)

func (*Service) SetPolicy

func (s *Service) SetPolicy(p sdk.MemoryLearningPolicy) error

func (*Service) Submit

Submit is idempotent for a source revision. A changed revision supersedes queued/running work without allowing the previous writer to finish it.

Jump to

Keyboard shortcuts

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