method getFailed documentation in bbn\Cron\Manager
function()
{
if ($this->check()) {
return array_map(
function ($a) {
$cfg = $a['cfg'] ? json_decode($a['cfg'], true) : [];
unset($a['cfg']);
return X::mergeArrays($a, $cfg);
}, $this->db->rselectAll(
[
'table' => $this->table,
'fields' => [],
'where' => [
'conditions' => [[
'field' => 'active',
'value' => 1
], [
'field' => 'pid',
'operator' => 'isnotnull'
], [
'field' => 'next',
'operator' => 'isnotnull'
], [
'field' => 'NOW()',
'operator' => '>',
'exp' => "DATE_ADD(prev, INTERVAL JSON_EXTRACT(cfg, '$.timeout') SECOND)"
]]
],
'order' => [[
'field' => 'priority',
'dir' => 'ASC'
], [
'field' => 'next',
'dir' => 'ASC'
]]
]
)
);
}
return null;
}
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