Showing 7 of 1,216 result(s)
On Unix-like systems the user the command will run under can be customized by calling user method. The user method accepts only the name of the user and does not perform any validation on it. For example, the following would schedule a command to...
By default, the task scheduler allows the same task to run concurrently (at the same time). This means that if a task has started and has not completed by the time it has been scheduled to start again, there will be two processes running the same...
The various methods that the event classes expose can be combined to specify more complicated scheduling intervals. The following tables lists each of these methods and a description of what they do (these methods are exposed via the...
Method Description timezone($timezone) Sets the timezone the date should be evaluated on. days($days) Sets the days of the week the command should run on. Can either specify each day as its own argument or supply an array of days. daily Schedules...
Method Description hourly Schedule the event to run hourly. at($time) Set the time that the command should run at. everyMinute Schedule the event to run every minute. everyFiveMinutes Schedule the event to run every five minutes. everyTenMinutes...
If you already have a Cron expression and would just like to use the expression instead of the methods on the Event classes, you may set the expression using the event's cron method:
The signature of the camel method is: