Documentation ¶
Overview ¶
Package jobs exposes the job engine and defines the job types used by seer
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseJobContext ¶
BaseJobContext denotes dependencies common to most jobs
type Engine ¶
type Engine interface { Start() Close() }
Engine is the contract for managing job execution
func NewJobsEngine ¶
NewJobsEngine instantiates a new job runn
type Job ¶
Job is the interface jobs should fulfill
func NewMatchesSyncJob ¶
NewMatchesSyncJob instantiates a runnable job for syncing a team's latest matches
func NewTeamAnalyticsJob ¶
NewTeamAnalyticsJob instantiates a runnable job for syncing a team's latest matches
type Status ¶
type Status string
Status indicates the state of a job
const ( // StatusQueued means job has been queued StatusQueued Status = "queued" // StatusRunning means the job is active StatusRunning Status = "running" // StatusRetrying means the job is scheduled for a retry StatusRetrying Status = "retrying" // StatusFailed means the job was unable to run successfully StatusFailed Status = "failed" // StatusDone means the job was able to run to completion StatusDone Status = "done" )
Click to show internal directories.
Click to hide internal directories.