/controllers/cron.php
PHP | 18 lines | 13 code | 3 blank | 2 comment | 0 complexity | 6ec98166a6f47815b5ebf3ee47692929 MD5 | raw file
- <?php
- //update github
- try{
- Log::getInstance()->log("[cron] Updating github information", true);
- Github::cron();
- } catch ( Exception $ex ) {
- Log::getInstance()->log("[cron] github exception: {$ex->getMessage()}. Trace: {$ex->getTraceAsString()}", true);
- }
- //update tickspot
- try{
- Log::getInstance()->log("[cron] Updating tickspot information", true);
- TickSpot::cron();
- } catch ( Exception $ex ) {
- Log::getInstance()->log("[cron] tickspot exception: {$ex->getMessage()}. Trace: {$ex->getTraceAsString()}", true);
- }