Skip to content

Instantly share code, notes, and snippets.

@LeeSaferite
Created May 28, 2010 17:14
Show Gist options
  • Save LeeSaferite/417431 to your computer and use it in GitHub Desktop.
Save LeeSaferite/417431 to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<config>
<modules>
<MyCompany_MyModule>
<version>1.0.0</version>
</MyCompany_MyModule>
</modules>
<global>
<models>
<cron>
<rewrite>
<observer>MyCompany_MyModule_Model_Observer</observer>
</rewrite>
</cron>
</models>
</global>
</config>
<?php
class MyCompany_MyModule_Model_Observer extends Mage_Cron_Model_Observer
{
/**
* Process cron queue
* Geterate tasks schedule
* Cleanup tasks schedule
*
* @param Varien_Event_Observer $observer
*/
public function dispatch($observer)
{
// DO YOUR STUFF HERE
parent::dispatch($observer);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment