public static function UltimateCronSignal::set in Ultimate Cron 7.2
Set signal.
Parameters
string $name: The name of the job.
string $signal: The name of the signal.
Return value
bool TRUE if the signal was set.
File
- ./
ultimate_cron.signal.inc, line 74 - File containing functions for Ultimate Cron signal handling.
Class
- UltimateCronSignal
- Class for handling Ultimate Cron signals.
Code
public static function set($name, $signal) {
$target = _ultimate_cron_get_transactional_safe_connection();
return db_merge('ultimate_cron_signal', array(
'target' => $target,
))
->key(array(
'job_name' => $name,
'signal_name' => $signal,
))
->fields(array(
'claimed' => 0,
))
->execute();
}