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

Method addDelayedJobToTransaction

php/src/Scripts.php:150–157  ·  view source on GitHub ↗

* Add a delayed job to a transaction. */

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

Source from the content-addressed store, hash-verified

148 * Add a delayed job to a transaction.
149 */
150 private function addDelayedJobToTransaction(mixed $transaction, Job $job, int $delay): void
151 {
152 $keys = $this->getKeys(['marker', 'meta', 'id', 'delayed', 'completed', 'events']);
153 $args = $this->addJobArgs($job);
154 $args[] = $job->timestamp + $delay;
155
156 $this->execScriptOnTransaction($transaction, 'addDelayedJob-6.lua', $keys, $args);
157 }
158
159 /**
160 * Add a prioritized job to a transaction.

Callers 1

addJobToTransactionMethod · 0.95

Calls 3

getKeysMethod · 0.95
addJobArgsMethod · 0.95

Tested by

no test coverage detected