func (js *JobScheduler) Disable() {
	ctx := js.withBaseContext(js.Background())
	js.JobConfig.Disabled = ref.Bool(true)
	if lifecycle := js.Lifecycle(); lifecycle.OnDisabled != nil {
		lifecycle.OnDisabled(ctx)
	}
	if js.Log != nil && !js.Config().SkipLoggerTrigger {
		js.Log.TriggerContext(ctx, NewEvent(FlagDisabled, js.Name()))
	}
}
// Disable sets the job as disabled.
Disable sets the job as disabled.
// Disable sets the job as disabled .
func (js *JobScheduler) Disable() {
	ctx := js.withBaseContext(js.Background())
	js.JobConfig.Disabled = ref.Bool(true)
	if lifecycle := js.Lifecycle(); lifecycle.OnDisabled != nil {
		lifecycle.OnDisabled(ctx)
	}
	if js.Log != nil && !js.Config().SkipLoggerTrigger {
		js.Log.TriggerContext(ctx, NewEvent(FlagDisabled, js.Name()))
	}
}
func ( js * JobScheduler ) Disable ( ) { ctx := js . withBaseContext ( js . Background ( ) ) js . JobConfig . Disabled = ref . Bool ( true ) if lifecycle := js . Lifecycle ( ) ; lifecycle . OnDisabled != nil { lifecycle . OnDisabled ( ctx ) } if js . Log != nil && ! js . Config ( ) . SkipLoggerTrigger { js . Log . TriggerContext ( ctx , NewEvent ( FlagDisabled , js . Name ( ) ) ) } }
Disable sets the job as disabled.
Disable sets the job as disabled .