You are here

public static function CronSignal::clear in Ultimate Cron 8.2

Clear signal.

Parameters

string $name: The name of the job.

string $signal: The name of the signal.

File

src/CronSignal.php, line 89

Class

CronSignal

Namespace

Drupal\ultimate_cron

Code

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