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

Method addPrioritizedJobToTransaction

php/src/Scripts.php:162–169  ·  view source on GitHub ↗

* Add a prioritized job to a transaction. */

(mixed $transaction, Job $job, int $priority)

Source from the content-addressed store, hash-verified

160 * Add a prioritized job to a transaction.
161 */
162 private function addPrioritizedJobToTransaction(mixed $transaction, Job $job, int $priority): void
163 {
164 $keys = $this->getKeys(['marker', 'meta', 'id', 'prioritized', 'delayed', 'completed', 'active', 'events', 'pc']);
165 $args = $this->addJobArgs($job);
166 $args[] = $priority;
167
168 $this->execScriptOnTransaction($transaction, 'addPrioritizedJob-9.lua', $keys, $args);
169 }
170
171 /**
172 * Build the arguments for adding a job.

Callers 1

addJobToTransactionMethod · 0.95

Calls 3

getKeysMethod · 0.95
addJobArgsMethod · 0.95

Tested by

no test coverage detected