Documentation ¶
Index ¶
- func ValidatedCronSpec(tomlString string) (job.Job, error)
- type Cron
- type Delegate
- func (d *Delegate) AfterJobCreated(spec job.Job)
- func (d *Delegate) BeforeJobCreated(spec job.Job)
- func (d *Delegate) BeforeJobDeleted(spec job.Job)
- func (d *Delegate) JobType() job.Type
- func (d *Delegate) OnDeleteJob(spec job.Job, q pg.Queryer) error
- func (d *Delegate) ServicesForSpec(spec job.Job) (services []job.ServiceCtx, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cron ¶
type Cron struct {
// contains filtered or unexported fields
}
Cron runs a cron jobSpec from a CronSpec
func NewCronFromJobSpec ¶
func NewCronFromJobSpec( jobSpec job.Job, pipelineRunner pipeline.Runner, logger logger.Logger, ) (*Cron, error)
NewCronFromJobSpec instantiates a job that executes on a predefined schedule.
type Delegate ¶
type Delegate struct {
// contains filtered or unexported fields
}
func (*Delegate) AfterJobCreated ¶
func (*Delegate) BeforeJobCreated ¶
func (*Delegate) BeforeJobDeleted ¶
func (*Delegate) ServicesForSpec ¶
ServicesForSpec returns the scheduler to be used for running cron jobs
Click to show internal directories.
Click to hide internal directories.