* Add a prioritized job to a transaction. */
(mixed $transaction, Job $job, int $priority)
| 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. |
no test coverage detected