public static function CronSignal::set in Ultimate Cron 8.2
Set signal.
Parameters
string $name: The name of the job.
string $signal: The name of the signal.
Return value
boolean TRUE if the signal was set.
Throws
\Exception
File
- src/
CronSignal.php, line 70
Class
Namespace
Drupal\ultimate_cronCode
public static function set($name, $signal) {
$database = \Drupal::service('ultimate_cron.database_factory');
return $database
->merge('ultimate_cron_signal')
->keys(array(
'job_name' => $name,
'signal_name' => $signal,
))
->fields(array(
'claimed' => 0,
))
->execute();
}