cancel
Showing results for 
Search instead for 
Did you mean: 

Allow running cron jobs by code

Allow running cron jobs by code

Feature request from Flyingmana, posted on GitHub Oct 12, 2015

To make debugging cronjobs a lot easier, it would be great if I can execute them directly via CLI

4 Comments
New Member

Comment from antonkril, posted on GitHub Oct 12, 2015

Also you can (should) write integration tests for them. Btw, doesn't custom cron group work for you?

New Member

Comment from Flyingmana, posted on GitHub Oct 12, 2015

Can I find documentation or an example for a integration test of cron?

I tried custom cron groups, but I can not rerun a job multiple times in less then a minute.

Also, I dont deploy phpunit to production environment, so I cant run the job there again to see, if the failing is random or reproducable, or just rerun it after changing a setting I forgot. Are this enough reasons to have this?

New Member

Comment from alankent, posted on GitHub Oct 12, 2015

Do you mean more than 'magento cron:run'? You want to select the specific code to run? Maybe add a command line option to the existing command?

New Member

Comment from Flyingmana, posted on GitHub Oct 12, 2015

yes, the specific code, and then having this one job directly running. A command line option would be probably enough for this.