public function JobQueue::markJobAsProcessed

Remove job jobs from the queue without marking them as processed.

Parameters

\Drupal\tmgmt\JobInterface $job: Job to be marked as processed.

File

src/JobQueue.php, line 105

Class

JobQueue
Represents a job (checkout) queue.

Namespace

Drupal\tmgmt

Code

public function markJobAsProcessed(JobInterface $job) {
  if ($this
    ->isJobInQueue($job)) {
    $this->processed++;
  }
  unset($this->queue[array_search($job
    ->id(), $this->queue)]);
}