include/SugarQueue/SugarCronParallelJobs.php
\SugarCronParallelJobs
Package: SugarCRM
CRON driver for job queue that forks a process for each job
- Parent(s)
- \SugarCronJobs
- Api
Properties
bool
$disable_schedulers= 'false'
inherited
This allows to disable schedulers cycle, e.g. for testing
Inherited from: \SugarCronJobs::$$disable_schedulers
Default value
false
Details- Type
- bool
- Inherited_from
- \SugarCronJobs::$$disable_schedulers
int
$min_interval= '30'
Default value
30
Details- Type
- int
- Inherited_from
- \SugarCronJobs::$$min_interval
Methods
executeJob(
\SchedulersJob $job
)
:
void
Execute given job
Parameters
Name | Type | Description |
---|---|---|
$job | \SchedulersJob |
runCycle(
)
:
void
inherited
Run CRON cycle: - cleanup - schedule new jobs - execute pending jobs
Inherited from: \SugarCronJobs::runCycle()unexpectedExit(
)
:
void
inherited
Shutdown handler to be called if something breaks in the middle of the job
Inherited from: \SugarCronJobs::unexpectedExit()