You are here

public static function UltimateCronSignal::clear in Ultimate Cron 7.2

Clear signal.

Parameters

string $name: The name of the job.

string $signal: The name of the signal.

File

./ultimate_cron.signal.inc, line 93
File containing functions for Ultimate Cron signal handling.

Class

UltimateCronSignal
Class for handling Ultimate Cron signals.

Code

public static function clear($name, $signal) {
  $target = _ultimate_cron_get_transactional_safe_connection();
  db_delete('ultimate_cron_signal', array(
    'target' => $target,
  ))
    ->condition('job_name', $name)
    ->condition('signal_name', $signal)
    ->execute();
}