Created
April 12, 2012 20:26
-
-
Save colinmollenhour/2370745 to your computer and use it in GitHub Desktop.
Mongo Queue runner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'app/Mage.php'; | |
if (!Mage::isInstalled()) { | |
echo "Application is not installed yet, please complete install wizard first."; | |
exit; | |
} | |
// Only for urls | |
// Don't remove this | |
$_SERVER['SCRIPT_NAME'] = str_replace(basename(__FILE__), 'index.php', $_SERVER['SCRIPT_NAME']); | |
$_SERVER['SCRIPT_FILENAME'] = str_replace(basename(__FILE__), 'index.php', $_SERVER['SCRIPT_FILENAME']); | |
Mage::app('admin')->setUseSessionInUrl(false); | |
try { | |
Mage::helper('mongo/queue')->runQueue(1000); | |
# Cm_Mongo_Profiler::debug(); | |
} catch (Exception $e) { | |
Mage::printException($e); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment