Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 569 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 569 Bytes

OroCronBundle

An interface and scheduler for time-based commands execution.

Usage

All you need is to add oro:cron command to a system cron (on *nix systems), for example:

*/1 * * * * /usr/local/bin/php /path/to/app/console --env=prod oro:cron >> /dev/null

If you want to make your console command auto-scheduled need to do following:

  • rename your command to start with oro:cron:
  • your command should implement Oro\Bundle\CronBundle\Command\CronCommandInterface

On Windows you can use Task Scheduler from Control Panel.