PageRenderTime 43ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/controllers/cron.php

https://bitbucket.org/delpho/tickhub
PHP | 18 lines | 13 code | 3 blank | 2 comment | 0 complexity | 6ec98166a6f47815b5ebf3ee47692929 MD5 | raw file
  1. <?php
  2. //update github
  3. try{
  4. Log::getInstance()->log("[cron] Updating github information", true);
  5. Github::cron();
  6. } catch ( Exception $ex ) {
  7. Log::getInstance()->log("[cron] github exception: {$ex->getMessage()}. Trace: {$ex->getTraceAsString()}", true);
  8. }
  9. //update tickspot
  10. try{
  11. Log::getInstance()->log("[cron] Updating tickspot information", true);
  12. TickSpot::cron();
  13. } catch ( Exception $ex ) {
  14. Log::getInstance()->log("[cron] tickspot exception: {$ex->getMessage()}. Trace: {$ex->getTraceAsString()}", true);
  15. }