Documentation ¶
Index ¶
- type Service
- func (s *Service) CreatedOrReplacedDeloyment(ctx context.Context) error
- func (s *Service) DeleteCronJobsForDeployment(ctx context.Context, key model.DeploymentKey) error
- func (s *Service) NewCronJobsForModule(ctx context.Context, module *schema.Module) ([]model.CronJob, error)
- func (s *Service) OnJobCompletion(ctx context.Context, key model.CronJobKey, failed bool) (err error)
- func (s *Service) ScheduleCronJobs(ctx context.Context) (err 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 NewForTesting ¶
func (*Service) CreatedOrReplacedDeloyment ¶
CreatedOrReplacedDeloyment is called by the responsible controller to its cron service, we can schedule all cron jobs here since the cron_jobs rows are locked within the transaction and the controllers won't step on each other.
func (*Service) DeleteCronJobsForDeployment ¶ added in v0.383.1
func (*Service) NewCronJobsForModule ¶
func (*Service) OnJobCompletion ¶ added in v0.359.0
func (s *Service) OnJobCompletion(ctx context.Context, key model.CronJobKey, failed bool) (err error)
OnJobCompletion is called by the controller when a cron job async call completes. We schedule the next execution of the cron job here.
Click to show internal directories.
Click to hide internal directories.