<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Magento Expert</title>
	<atom:link href="http://www.the-mage-expert.com/tag/cron-jobs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.the-mage-expert.com</link>
	<description>Your Magento Commerce Expert</description>
	<lastBuildDate>Tue, 24 Jan 2023 09:37:24 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8.6</generator>
	<item>
		<title>Setting running status correctly in Magento 1.4</title>
		<link>http://www.the-mage-expert.com/352/setting-running-status-correctly-magento1-4/</link>
		<comments>http://www.the-mage-expert.com/352/setting-running-status-correctly-magento1-4/#comments</comments>
		<pubDate>Wed, 08 May 2013 10:07:21 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[cron-jobs]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=352</guid>
		<description><![CDATA[The setting of the running status in the cron_schedule table in Magento 1.4 is not working correctly. The code in Magento 1.4 is not 100% correct. Create a local copy of Mage_Cron_Model_Observer and take a look at the dispatch function:&#8230;]]></description>
				<content:encoded><![CDATA[<p>The setting of the running status in the cron_schedule table in Magento 1.4 is not working correctly. The code in Magento 1.4 is not 100% correct. Create a local copy of <em>Mage_Cron_Model_Observer</em> and take a look at the dispatch function:</p>
<p></p><pre class="crayon-plain-tag">$schedule-&gt;setExecutedAt(strftime('%Y-%m-%d %H:%M:%S', time()))-&gt;save();</pre><p></p>
<p>The status should also be saved here, not just the execution time. Change the code from the above to the below:</p>
<p></p><pre class="crayon-plain-tag">$schedule-&gt;setStatus(Mage_Cron_Model_Schedule::STATUS_RUNNING)-&gt;setExecutedAt(strftime('%Y-%m-%d %H:%M:%S', time()))-&gt;save();</pre><p></p>]]></content:encoded>
			<wfw:commentRss>http://www.the-mage-expert.com/352/setting-running-status-correctly-magento1-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring and running cron jobs</title>
		<link>http://www.the-mage-expert.com/15/magento-configuring-and-running-cron-jobs/</link>
		<comments>http://www.the-mage-expert.com/15/magento-configuring-and-running-cron-jobs/#comments</comments>
		<pubDate>Mon, 18 Feb 2013 16:29:03 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[cron-jobs]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=15</guid>
		<description><![CDATA[To add and run a Magento cron job in your module, add the following XML to your modules config.xml: [crayon-69f3b021b24d4/] Thats the first step. Once that was done, you have to manually or automatically run cron.php. Its in your stores&#8230;]]></description>
				<content:encoded><![CDATA[<p>To add and run a Magento cron job in your module, add the following XML to your modules config.xml:</p><pre class="crayon-plain-tag">&lt;config&gt;
    &lt;crontab&gt;
        &lt;jobs&gt;
            &lt;some_unique_job_code&gt;
                &lt;schedule&gt;
                    &lt;!-- every minute for example --&gt;
                    &lt;cron_expr&gt;*/1 * * * *&lt;/cron_expr&gt;
                &lt;/schedule&gt;
                &lt;run&gt;
                    &lt;model&gt;module/observer::functionToRun&lt;/model&gt;
                &lt;/run&gt;
            &lt;/some_unique_job_code&gt;
        &lt;/jobs&gt;
    &lt;/crontab&gt;
&lt;/config&gt;</pre><p></p>
<p>Thats the first step. Once that was done, you have to manually or automatically run <em>cron.php</em>. Its in your stores root directory. After running <em>cron.php</em>, you should see entries mathcing your new job in the <em>cron_schedule</em> table.</p>]]></content:encoded>
			<wfw:commentRss>http://www.the-mage-expert.com/15/magento-configuring-and-running-cron-jobs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
