You are here

public static function UltimateCronSignal::flush in Ultimate Cron 7.2

Clear signals.

Parameters

string $name: The name of the job.

File

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

Class

UltimateCronSignal
Class for handling Ultimate Cron signals.

Code

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