include/SugarQueue/SugarCronRemoteJobs.php
\SugarCronRemoteJobs
Package: SugarCRM
CRON driver for job queue that ships jobs outside
- 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
string
$submitURL= '"submitJob"'
Just in case we'd ever need to override...
Default value
"submitJob"
Details- Type
- string
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()setClient(
\SugarHttpClient $client
)
:
void
Set client to talk to SNIP
Parameters
Name | Type | Description |
---|---|---|
$client | \SugarHttpClient |
unexpectedExit(
)
:
void
inherited
Shutdown handler to be called if something breaks in the middle of the job
Inherited from: \SugarCronJobs::unexpectedExit()