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

Method execScript

php/src/Scripts.php:92–98  ·  view source on GitHub ↗

* Execute a Lua script. * * @param string $scriptName * @param array $keys * @param array $args * @return mixed */

(string $scriptName, array $keys, array $args)

Source from the content-addressed store, hash-verified

90 * @return mixed
91 */
92 private function execScript(string $scriptName, array $keys, array $args): mixed
93 {
94 $script = $this->getScript($scriptName);
95 $numKeys = count($keys);
96
97 return $this->client->eval($script, $numKeys, ...$keys, ...$args);
98 }
99
100 /**
101 * Queue a Lua script execution on a transaction.

Callers 15

addStandardJobMethod · 0.95
addDelayedJobMethod · 0.95
addPrioritizedJobMethod · 0.95
pauseMethod · 0.95
getCountsMethod · 0.95
getCountsPerPriorityMethod · 0.95
getStateMethod · 0.95
getJobsMethod · 0.95
getRangesMethod · 0.95
cleanJobsInSetMethod · 0.95
obliterateMethod · 0.95
moveJobsToWaitMethod · 0.95

Calls 2

getScriptMethod · 0.95
evalMethod · 0.80

Tested by

no test coverage detected