func (js *JobScheduler) Enable() {
	ctx := js.withBaseContext(js.Background())
	js.JobConfig.Disabled = ref.Bool(false)
	if lifecycle := js.Lifecycle(); lifecycle.OnEnabled != nil {
		lifecycle.OnEnabled(ctx)
	}
	if js.Log != nil && !js.Config().SkipLoggerTrigger {
		js.Log.TriggerContext(ctx, NewEvent(FlagEnabled, js.Name()))
	}
}
// Enable sets the job as enabled.
Enable sets the job as enabled.
// Enable sets the job as enabled .
func (js *JobScheduler) Enable() {
	ctx := js.withBaseContext(js.Background())
	js.JobConfig.Disabled = ref.Bool(false)
	if lifecycle := js.Lifecycle(); lifecycle.OnEnabled != nil {
		lifecycle.OnEnabled(ctx)
	}
	if js.Log != nil && !js.Config().SkipLoggerTrigger {
		js.Log.TriggerContext(ctx, NewEvent(FlagEnabled, js.Name()))
	}
}
func ( js * JobScheduler ) Enable ( ) { ctx := js . withBaseContext ( js . Background ( ) ) js . JobConfig . Disabled = ref . Bool ( false ) if lifecycle := js . Lifecycle ( ) ; lifecycle . OnEnabled != nil { lifecycle . OnEnabled ( ctx ) } if js . Log != nil && ! js . Config ( ) . SkipLoggerTrigger { js . Log . TriggerContext ( ctx , NewEvent ( FlagEnabled , js . Name ( ) ) ) } }
Enable sets the job as enabled.
Enable sets the job as enabled .