0
Magento의 cron 기능을 사용하여 매 5 분마다 작업을 실행하는 Magento 확장을 만들었지 만 제대로 작동하지 않습니다.Magento 확장의 Cron 작업
내 확장 설정 (등/config.xml에) :
<config>
...
<crontab>
<jobs>
<featuredtopics_getnewtopics>
<schedule><cron_expr>*/5 * * * *</cron_expr></schedule>
<run><model>featuredtopics/cron::getNewTopics</model></run>
</featuredtopics_getnewtopics>
</jobs>
</crontab>
</config>
내 확장 크론 모델 (모델/Cron.php가) :
class Sodapop_Featuredtopics_Model_Cron {
public function getNewTopics() {
// Stuff
}
}
크론 작업이 잘 시작하는 것, 그것은 결코 끝나지 않습니다. 나는 무엇을 돌려주는 것을지지합니까?
편집 자세히 조사한 결과 스크립트에 오류가 있음을 알았습니다.
도움을 주셔서 감사합니다. 일부 디버깅 후 스크립트에 오류가 있음을 발견했습니다. –