MCPcopy Create free account
hub / github.com/taskforcesh/bullmq / pause

Method pause

php/src/Scripts.php:290–297  ·  view source on GitHub ↗

* Pause or resume the queue. * * @param bool $pause True to pause, false to resume * @return mixed */

(bool $pause = true)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

getKeysMethod · 0.95
execScriptMethod · 0.95

Tested by

no test coverage detected