include/SugarQueue/SugarCronJobs.php
\SugarCronJobs
Package: SugarCRM
CRON driver for job queue
- Children
- \SugarCronRemoteJobs
- \SugarCronParallelJobs
- Api
Properties

bool
$disable_schedulers= 'false'
This allows to disable schedulers cycle, e.g. for testing
Default value
falseDetails- Type
- bool
Methods

executeJob(
\SchedulersJob $job
)
:
voidExecute given job
Parameters
| Name | Type | Description |
|---|---|---|
| $job | \SchedulersJob |

jobFailed(
\SchedulersJob $job
=
null
)
:
voidWhat to do if one of the jobs failed
Parameters
| Name | Type | Description |
|---|---|---|
| $job | \SchedulersJob |

throttle(
)
:
boolCheck if we aren't running jobs too frequently
Returns
| Type | Description |
|---|---|
| bool | OK to run? |