Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/daemon/workers/PhabricatorWorker.php
Show All 12 Lines | abstract class PhabricatorWorker extends Phobject { | ||||
// NOTE: Lower priority numbers execute first. The priority numbers have to | // NOTE: Lower priority numbers execute first. The priority numbers have to | ||||
// have the same ordering that IDs do (lowest first) so MySQL can use a | // have the same ordering that IDs do (lowest first) so MySQL can use a | ||||
// multipart key across both of them efficiently. | // multipart key across both of them efficiently. | ||||
const PRIORITY_ALERTS = 1000; | const PRIORITY_ALERTS = 1000; | ||||
const PRIORITY_DEFAULT = 2000; | const PRIORITY_DEFAULT = 2000; | ||||
const PRIORITY_COMMIT = 2500; | const PRIORITY_COMMIT = 2500; | ||||
const PRIORITY_BULK = 3000; | const PRIORITY_BULK = 3000; | ||||
const PRIORITY_INDEX = 3500; | |||||
const PRIORITY_IMPORT = 4000; | const PRIORITY_IMPORT = 4000; | ||||
/** | /** | ||||
* Special owner indicating that the task has yielded. | * Special owner indicating that the task has yielded. | ||||
*/ | */ | ||||
const YIELD_OWNER = '(yield)'; | const YIELD_OWNER = '(yield)'; | ||||
/* -( Configuring Retries and Failures )----------------------------------- */ | /* -( Configuring Retries and Failures )----------------------------------- */ | ||||
▲ Show 20 Lines • Show All 286 Lines • Show Last 20 Lines |