You are here

public static function CronSignal::flush in Ultimate Cron 8.2

Clear signals.

Parameters

string $name: The name of the job.

File

src/CronSignal.php, line 103

Class

CronSignal

Namespace

Drupal\ultimate_cron

Code

public static function flush($name) {
  $database = \Drupal::service('ultimate_cron.database_factory');
  $database
    ->delete('ultimate_cron_signal')
    ->condition('job_name', $name)
    ->execute();
}