* Pause or resume the queue. * * @param bool $pause True to pause, false to resume * @return mixed */
(bool $pause = true)
| 288 | * @return mixed |
| 289 | */ |
| 290 | public function pause(bool $pause = true): mixed |
| 291 | { |
| 292 | $src = $pause ? 'wait' : 'paused'; |
| 293 | $dst = $pause ? 'paused' : 'wait'; |
| 294 | $keys = $this->getKeys([$src, $dst, 'meta', 'prioritized', 'events', 'delayed', 'marker']); |
| 295 | |
| 296 | return $this->execScript('pause-7.lua', $keys, [$pause ? 'paused' : 'resumed']); |
| 297 | } |
| 298 | |
| 299 | /** |
| 300 | * Get job counts by types. |
nothing calls this directly
no test coverage detected