You are here

public function AcquiaPurgeCapacity::queueClaimsSubtract in Acquia Purge 7

Subtract processed queue claims from the claim limit.

Parameters

int $processed_items: Number of queue claims just processed by AcquiaPurgeService::process().

File

lib/AcquiaPurgeCapacity.php, line 205
Contains AcquiaPurgeCapacity.

Class

AcquiaPurgeCapacity
Runtime capacity tracker.

Code

public function queueClaimsSubtract($processed_items) {
  $this
    ->queueClaimsLimit();
  if ($this->queueClaimsLimit) {
    $this->queueClaimsLimit - intval($processed_items);
  }
}