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

Method addPrioritizedJob

php/src/Scripts.php:275–282  ·  view source on GitHub ↗

* Add a prioritized job to the queue. * * @param Job $job * @param int $priority * @return mixed */

(Job $job, int $priority)

Source from the content-addressed store, hash-verified

273 * @return mixed
274 */
275 public function addPrioritizedJob(Job $job, int $priority): mixed
276 {
277 $keys = $this->getKeys(['marker', 'meta', 'id', 'prioritized', 'delayed', 'completed', 'active', 'events', 'pc']);
278 $args = $this->addJobArgs($job);
279 $args[] = $priority;
280
281 return $this->execScript('addPrioritizedJob-9.lua', $keys, $args);
282 }
283
284 /**
285 * Pause or resume the queue.

Callers 1

addJobMethod · 0.95

Calls 3

getKeysMethod · 0.95
addJobArgsMethod · 0.95
execScriptMethod · 0.95

Tested by

no test coverage detected