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

Method addStandardJobToTransaction

php/src/Scripts.php:138–145  ·  view source on GitHub ↗

* Add a standard job to a transaction. */

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

Source from the content-addressed store, hash-verified

136 * Add a standard job to a transaction.
137 */
138 private function addStandardJobToTransaction(mixed $transaction, Job $job, int $timestamp): void
139 {
140 $keys = $this->getKeys(['wait', 'paused', 'meta', 'id', 'completed', 'delayed', 'active', 'events', 'marker']);
141 $args = $this->addJobArgs($job);
142 $args[] = $timestamp;
143
144 $this->execScriptOnTransaction($transaction, 'addStandardJob-9.lua', $keys, $args);
145 }
146
147 /**
148 * Add a delayed job to a transaction.

Callers 1

addJobToTransactionMethod · 0.95

Calls 3

getKeysMethod · 0.95
addJobArgsMethod · 0.95

Tested by

no test coverage detected