OptionalcronjobAn optional CronJob instance associated with the task.
OptionaldescriptionAn optional description of the task.
The method to be executed when the task is run.
OptionalnameThe name of the task.
OptionalonThe method to be executed when the task is completed.
The schedule for the task. This can be a cron string or a Date object.
OptionalstartA flag indicating whether the task should start immediately. If not set to true, you must call task.cronjob.start() manually
OptionaltimezoneAn optional timezone for the task.
Represents a Scheduled Task with a name, optional description, schedule, start flag, optional timezone and a method.
Tasks are powered by the cron package.
An object of this type can be passed to the Brick.schedule method.