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

Method remove

php/src/Scripts.php:499–508  ·  view source on GitHub ↗

* Remove a job. * * @param string $jobId * @param bool $removeChildren * @return mixed */

(string $jobId, bool $removeChildren = true)

Source from the content-addressed store, hash-verified

497 * @return mixed
498 */
499 public function remove(string $jobId, bool $removeChildren = true): mixed
500 {
501 $keys = [
502 $this->toKey($jobId),
503 $this->keys['repeat'],
504 ];
505 $args = [$jobId, $removeChildren ? 1 : 0, $this->keys['']];
506
507 return $this->execScript('removeJob-2.lua', $keys, $args);
508 }
509
510 /**
511 * Check if queue is maxed (rate limited).

Callers

nothing calls this directly

Calls 2

toKeyMethod · 0.95
execScriptMethod · 0.95

Tested by

no test coverage detected