@@ -148,6 +148,7 @@ discard block |
||
| 148 | 148 | /** |
| 149 | 149 | * @param string $crcCacheKey |
| 150 | 150 | * @param int|null $newFoundPriority |
| 151 | + * @param string $foundJobCacheKey |
|
| 151 | 152 | */ |
| 152 | 153 | protected function finishBatchFoundJob(Job $foundJob, $foundJobCacheKey, $crcCacheKey, $newFoundWhen, $newFoundPriority) |
| 153 | 154 | { |
@@ -170,6 +171,7 @@ discard block |
||
| 170 | 171 | |
| 171 | 172 | /** |
| 172 | 173 | * @param bool $adjust |
| 174 | + * @param string $crcCacheKey |
|
| 173 | 175 | */ |
| 174 | 176 | protected function addFoundJob($adjust, Job $foundJob, $foundJobCacheKey, $crcCacheKey) |
| 175 | 177 | { |
@@ -207,6 +207,9 @@ |
||
| 207 | 207 | return $count; |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | + /** |
|
| 211 | + * @param integer $expected |
|
| 212 | + */ |
|
| 210 | 213 | protected static function getWaitingJobCount($expected) |
| 211 | 214 | { |
| 212 | 215 | $count = self::$jobManager->getWaitingJobCount(); |
@@ -252,6 +252,9 @@ |
||
| 252 | 252 | self::$jobManager->saveHistory($jobInQueue); |
| 253 | 253 | } |
| 254 | 254 | |
| 255 | + /** |
|
| 256 | + * @param \PhpAmqpLib\Channel\AMQPChannel $channel |
|
| 257 | + */ |
|
| 255 | 258 | protected static function drainQueue($channel) |
| 256 | 259 | { |
| 257 | 260 | $drained = 0; |