/**
  * (non-PHPdoc)
  * @see BaseJob::run()
  */
 public function run()
 {
     $sendGridEmailAccounts = SendGridEmailAccount::getAll();
     foreach ($sendGridEmailAccounts as $sendGridEmailAccount) {
         $eventWebhookFilePath = SendGridLogUtil::getLogFilePath($sendGridEmailAccount->apiUsername);
         if ($eventWebhookFilePath != null && file_exists($eventWebhookFilePath)) {
             $this->processEventData($eventWebhookFilePath);
             @file_put_contents($eventWebhookFilePath, '');
         }
     }
     //Global
     if (Yii::app()->sendGridEmailHelper->apiUsername != '') {
         $globalWebHookFilePath = SendGridLogUtil::getLogFilePath(Yii::app()->sendGridEmailHelper->apiUsername);
         if ($globalWebHookFilePath != null && file_exists($globalWebHookFilePath)) {
             $this->processEventData($globalWebHookFilePath);
             @file_put_contents($globalWebHookFilePath, '');
         }
     }
     return true;
 }