method notifyFailed documentation in bbn\Cron\Manager
function(bbn\Appui\Notification $notification = NULL)
{
$notifications = $notification ?? new Notification($this->db);
if ($failed = $this->getFailed()) {
foreach ($failed as $f) {
$content = X::_('The task')." $f[file] ".X::_('failed.');
if (empty($f['notification'])
&& $notifications->insertByOption(X::_('CRON task failed'), $content, 'cron/task_failed', true)
) {
$this->db->update($this->table, ['notification' => X::microtime()], ['id' => $f['id']]);
}
}
}
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions