You are here

public function LauncherBase::isLockedMultiple in Ultimate Cron 8.2

Fallback implementation of multiple lock check.

Each launcher should implement an optimized version of this method if possible.

Parameters

\Drupal\ultimate_cron\CronJobInterface[] $jobs: Array of UltimateCronJobs to check.

Return value

array Array of lock ids, keyed by job name.

Overrides LauncherInterface::isLockedMultiple

1 method overrides LauncherBase::isLockedMultiple()
SerialLauncher::isLockedMultiple in src/Plugin/ultimate_cron/Launcher/SerialLauncher.php
Fallback implementation of multiple lock check.

File

src/Launcher/LauncherBase.php, line 48

Class

LauncherBase
Abstract class for Ultimate Cron launchers.

Namespace

Drupal\ultimate_cron\Launcher

Code

public function isLockedMultiple(array $jobs) {
  $lock_ids = array();
  foreach ($jobs as $name => $job) {
    $lock_ids[$name] = $this
      ->isLocked($job);
  }
}