I'm working on ubuntu. I've configured cron job in config.xml
<crontab>
<jobs>
<my_cron>
<schedule>
<cron_expr>*/1 * * * *</cron_expr>
</schedule>
<run>
<model>helloworld/observer::doSomething</model>
</run>
</my_cron>
</jobs>
</crontab>
and observer function is as follow
public function doSomething()
{
Mage::log("Ya", null, 'obs.log');
}
After doing these settings, I don't see cron scheduled in cron_schedule
table. When I run localhost/magento/cron.php file, cron is registered in cron_schedule
table.
How I can configure it such that I don't have to run cron.php every time and cron schedule will be registered in cron_schedule
table?
Also, I want to run it every 1 minute by using <cron_expr>*/1 * * * *</cron_expr>
but in cron_schedule
table it says, it's scheduled at 2015-07-15 04:57:00, which is not just a minute away.