Important
You are browsing the documentation for version 4.1 of OroCommerce, OroCRM and OroPlatform, which is no longer maintained. Read version 5.1 (the latest LTS version) of the Oro documentation to get up-to-date information.
See our Release Process documentation for more information on the currently supported and upcoming releases.
How to Add/Remove Scheduled task¶
Scheduled (cron) tasks can be configured, as illustrated below:
1---
2orocloud_options:
3 schedule:
4 'schedule1':
5 command: 'uname -a'
6 minute: '55'
7 hour: '23'
8 month: '11'
9 monthday: '31'
10 weekday: '1'
schedule — the hash where the key is a scheduled task name, and the value is the configuration for the scheduled task.
command - command which will be executed.
minute - execution time, minute. Allowed values 0 - 59,
*/x
where x is a number. Optional, by default ‘*’, which means every minute.hour - execution time, hour. Allowed values 0 - 23,
*/x
where x is a number. Optional, by default ‘*’, which means every hour.month - execution time, month. Allowed values 1 - 12,
*/x
where x is a number. Optional, by default ‘*’, which means every month.monthday - execution time, day of the month. Allowed values 1 - 31,
*/x
where x is a number. Optional, by default ‘*’, which means every day of the month.weekday - execution time, day of week. Allowed values 0 - 7, where 0,7 are “Sunday”;
*/x
where x is a number. Optional, by default ‘*’, which means every day.