I've created a CRON job which I want to launch once a time every day. This cron is sending me an email when it's launching.
See my crontab.xml
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Cron:etc/crontab.xsd"> <group id="default"> <job name="custom_cronjob" instance="Portail\Cron\Cron\Test" method="execute"> <!-- every minutes --> <!--<schedule>* * * * *</schedule>--> <!-- every days --> <schedule>0 0 * * *</schedule> <config_path>system/config/path</config_path> </job> </group> </config> But I'm not receiving any email.
Do I need to change the schedule ?
When I manually run cron:run group="default" my email is sended.