Documentation
¶
Overview ¶
Package memoryjobs owns durable background learning jobs. Hosts provide evidence/model callbacks and short-lived permission to use idle capacity.
Index ¶
- type Callback
- type Service
- func (s *Service) Close() error
- func (s *Service) Jobs(ctx context.Context, app, bank string) ([]sdk.MemoryLearningJob, error)
- func (s *Service) Retry(ctx context.Context, app, id string) error
- func (s *Service) Run(ctx context.Context)
- func (s *Service) SetPolicy(p sdk.MemoryLearningPolicy) error
- func (s *Service) Submit(ctx context.Context, j sdk.MemoryLearningJob) (sdk.MemoryLearningJob, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Submit ¶
func (s *Service) Submit(ctx context.Context, j sdk.MemoryLearningJob) (sdk.MemoryLearningJob, error)
Submit is idempotent for a source revision. A changed revision supersedes queued/running work without allowing the previous writer to finish it.
Click to show internal directories.
Click to hide internal directories.