You are here

public function SerialLauncher::cron_alter in Ultimate Cron 8.2

Implements hook_cron_alter().

File

src/Plugin/ultimate_cron/Launcher/SerialLauncher.php, line 26

Class

SerialLauncher
Ultimate Cron launcher plugin class.

Namespace

Drupal\ultimate_cron\Plugin\ultimate_cron\Launcher

Code

public function cron_alter(&$jobs) {
  $lock = \Drupal::service('ultimate_cron.lock');
  if (!empty($lock->{$killable})) {
    $jobs['ultimate_cron_plugin_launcher_serial_cleanup']->hook['tags'][] = 'killable';
  }
}