const classcron::CronService
sys::Obj cron::CronService : sys::Service
CronService
- addJob
This addJob(Str name, Method method, Obj schedule)
Add a CronJob to this service.
- dir
const File dir := Env.cur().workDir() + `cron/`
Directory for job config and logs.
- jobLogLimit
const Int jobLogLimit := 30
Number of logs to keep per job.
- jobs
List current jobs.
- make
new make(|This? f := null)
Constructor.
- onStart
virtual override Void onStart()
Start service.
- onStop
virtual override Void onStop()
Stop service will block until all jobs are complete.
- removeJob
Remove given job from service.