Documentation ¶
Index ¶
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 New ¶
func New(ctx context.Context, key model.ControllerKey, requestSource string, encryption *encryptionsvc.Service, conn *sql.DB) *Service
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) 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.