You are here

public function UltimateCronLauncher::isLockedMultiple in Ultimate Cron 7.2

Fallback implementation of multiple lock check.

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

Parameters

array $jobs: Array of UltimateCronJob to check.

Return value

array Array of lock ids, keyed by job name.

2 methods override UltimateCronLauncher::isLockedMultiple()
UltimateCronBackgroundProcessLegacyLauncher::isLockedMultiple in plugins/ultimate_cron/launcher/background_process_legacy.class.php
Check locked state for multiple jobs.
UltimateCronSerialLauncher::isLockedMultiple in plugins/ultimate_cron/launcher/serial.class.php
Check lock for multiple jobs.

File

./ultimate_cron.plugin.inc, line 974
Plugin framework for Ultimate Cron.

Class

UltimateCronLauncher
Abstract class for Ultimate Cron launchers.

Code

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