- const PRIORITY_UNDEFINED = PRIORITY_UNDEFINED;
- const PRIORITY_CRITICAL = PRIORITY_CRITICAL;
- const PRIORITY_HIGH = PRIORITY_HIGH;
- const PRIORITY_MEDIUM = PRIORITY_MEDIUM;
- const PRIORITY_LOW = PRIORITY_LOW;
- const PRIORITY_NEGLIGIBLE = PRIORITY_NEGLIGIBLE;
+ /**
+ * @name Priority
+ *
+ * Process priority for the worker
+ * @{
+ */
+ const PRIORITY_UNDEFINED = 0;
+ const PRIORITY_CRITICAL = 10;
+ const PRIORITY_HIGH = 20;
+ const PRIORITY_MEDIUM = 30;
+ const PRIORITY_LOW = 40;
+ const PRIORITY_NEGLIGIBLE = 50;
+ const PRIORITIES = [self::PRIORITY_CRITICAL, self::PRIORITY_HIGH, self::PRIORITY_MEDIUM, self::PRIORITY_LOW, self::PRIORITY_NEGLIGIBLE];
+ /* @}*/