php - How to set-up a cron job for multiple models in magento? -
i'm trying set-up cron job multiple models. have 2 methods (method1 , method2) in model (observer.php) want set cron job. code :
config.xml file :
<crontab> <jobs> <erpbridge_update> <schedule> <cron_expr>* * * * *</cron_expr> </schedule> <run> <model>erpbridge/observer::method1</model> </run> </erpbridge_update> <mss_erpbridge> <schedule> <cron_expr>* * * * *</cron_expr> </schedule> <run> <model>erpbridge/observer::method2</model> </run> </mss_erpbridge> </jobs> </crontab>
name space mss , module name erpbridge, corn right module name working <mss_erpbridge>
not working </erpbridge_update>
. when set same key both <mss_erpbridge>
second works.
my query :
is possible set cron job multiple models if yes, how?
(i followed : setup magento cron job call multiple models did't work)
Comments
Post a Comment