[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/infrastructure/daemon/workers/exception/ -> PhabricatorWorkerYieldException.php (source)

   1  <?php
   2  
   3  /**
   4   * Allows tasks to yield to other tasks.
   5   *
   6   * If a worker throws this exception while processing a task, the task will be
   7   * pushed toward the back of the queue and tried again later.
   8   */
   9  final class PhabricatorWorkerYieldException extends Exception {
  10  
  11    private $duration;
  12  
  13    public function __construct($duration) {
  14      $this->duration = $duration;
  15      parent::__construct();
  16    }
  17  
  18    public function getDuration() {
  19      return $this->duration;
  20    }
  21  
  22  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1