Documentation
¶
Index ¶
- Constants
- type Config
- type Job
- type Runner
- type WorkerState
- type Workers
- func (ws *Workers) Interrupt() error
- func (ws *Workers) InterruptWorker(id string) error
- func (ws *Workers) Resume() error
- func (ws *Workers) ResumeWorker(id string) error
- func (ws *Workers) Start() error
- func (ws *Workers) StartWorker(temporary, interrupted bool) (string, error)
- func (ws *Workers) State() ([]*WorkerState, error)
- func (ws *Workers) Stop() error
- func (ws *Workers) StopWorker(id string) error
Constants ¶
View Source
const (
MaxPoolSize = 10
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct {
ID string `json:"id"`
Namespace string `json:"namespace"`
Type string `json:"type"`
ExternalID string `json:"external_id"`
Name string `json:"name"`
Version uint `json:"version"`
Origin string `json:"origin"`
Priority sdk.Priority `json:"priority"`
Session uint `json:"session"`
Attempt uint `json:"attempt"`
StartedAt time.Time `json:"started_at"`
FinishedAt time.Time `json:"finished_at"`
}
type WorkerState ¶
type Workers ¶
type Workers struct {
// contains filtered or unexported fields
}
func (*Workers) InterruptWorker ¶
func (*Workers) ResumeWorker ¶
func (*Workers) StartWorker ¶
func (*Workers) State ¶
func (ws *Workers) State() ([]*WorkerState, error)
func (*Workers) StopWorker ¶
Click to show internal directories.
Click to hide internal directories.