@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at recaptime-dev/main 22 lines 464 B view raw
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 */ 9final 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}