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
false
Details- Type
- bool
Methods
executeJob(
\SchedulersJob $job
)
:
void
Execute given job
Parameters
Name | Type | Description |
---|---|---|
$job | \SchedulersJob |
jobFailed(
\SchedulersJob $job
=
null
)
:
void
What to do if one of the jobs failed
Parameters
Name | Type | Description |
---|---|---|
$job | \SchedulersJob |
throttle(
)
:
bool
Check if we aren't running jobs too frequently
Returns
Type | Description |
---|---|
bool | OK to run? |