mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-02 19:33:14 +03:00
Add filter for JobManager intervals
This commit is contained in:
parent
6b095b4271
commit
9bf1c88f4b
@ -57,3 +57,5 @@ There are list of available filters:
|
||||
* *RetailcrmFilterSaveCustomerAddress* - built customer address object, which will be saved to CMS
|
||||
* *RetailcrmFilterSaveCorporateCustomer* - built corporate customer object, which will be saved to CMS
|
||||
* *RetailcrmFilterSaveCorporateCustomerAddress* - built corporate customer address object, which will be saved to CMS
|
||||
|
||||
* *RetailcrmFilterJobManagerIntervals* - array with jobs as keys and intervals as values
|
||||
|
@ -707,12 +707,17 @@ class RetailcrmTools
|
||||
*/
|
||||
public static function startJobManager()
|
||||
{
|
||||
RetailcrmJobManager::startJobs(array(
|
||||
$intervals = array(
|
||||
'RetailcrmClearLogsEvent' => new \DateInterval('P1D'),
|
||||
'RetailcrmIcmlEvent' => new \DateInterval('PT4H'),
|
||||
'RetailcrmInventoriesEvent' => new \DateInterval('PT15M'),
|
||||
'RetailcrmSyncEvent' => new \DateInterval('PT7M'),
|
||||
'RetailcrmAbandonedCartsEvent' => new \DateInterval('PT1M')
|
||||
);
|
||||
|
||||
RetailcrmJobManager::startJobs(self::filter(
|
||||
'RetailcrmFilterJobManagerIntervals',
|
||||
$intervals
|
||||
));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user