You are here

public function CronJob::clearSignals in Ultimate Cron 8.2

Send all signal for the job.

Overrides CronJobInterface::clearSignals

See also

UltimateCronSignal::flush()

1 call to CronJob::clearSignals()
CronJob::run in src/Entity/CronJob.php
Run job.

File

src/Entity/CronJob.php, line 254

Class

CronJob
Class for handling cron jobs.

Namespace

Drupal\ultimate_cron\Entity

Code

public function clearSignals() {
  unset(self::$signals[$this
    ->id()]);
  $signal = \Drupal::service('ultimate_cron.signal');
  $signal
    ->flush($this
    ->id());
}