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

Method getJobState

php/src/Queue.php:453–456  ·  view source on GitHub ↗

* Get the state of a job. * * @param string $jobId The job ID * @return string The job state (waiting, active, delayed, completed, failed, unknown) */

(string $jobId)

Source from the content-addressed store, hash-verified

451 * @return string The job state (waiting, active, delayed, completed, failed, unknown)
452 */
453 public function getJobState(string $jobId): string
454 {
455 return $this->scripts->getState($jobId);
456 }
457
458 /**
459 * Remove a job from the queue.

Callers 5

testCanAddDelayedJobMethod · 0.45
getters.test.tsFile · 0.45
sandboxProcessTestsFunction · 0.45
worker.test.tsFile · 0.45

Calls 1

getStateMethod · 0.65

Tested by 3

testCanAddDelayedJobMethod · 0.36
sandboxProcessTestsFunction · 0.36