mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-03 11:43:16 +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
|
* *RetailcrmFilterSaveCustomerAddress* - built customer address object, which will be saved to CMS
|
||||||
* *RetailcrmFilterSaveCorporateCustomer* - built corporate customer 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
|
* *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()
|
public static function startJobManager()
|
||||||
{
|
{
|
||||||
RetailcrmJobManager::startJobs(array(
|
$intervals = array(
|
||||||
'RetailcrmClearLogsEvent' => new \DateInterval('P1D'),
|
'RetailcrmClearLogsEvent' => new \DateInterval('P1D'),
|
||||||
'RetailcrmIcmlEvent' => new \DateInterval('PT4H'),
|
'RetailcrmIcmlEvent' => new \DateInterval('PT4H'),
|
||||||
'RetailcrmInventoriesEvent' => new \DateInterval('PT15M'),
|
'RetailcrmInventoriesEvent' => new \DateInterval('PT15M'),
|
||||||
'RetailcrmSyncEvent' => new \DateInterval('PT7M'),
|
'RetailcrmSyncEvent' => new \DateInterval('PT7M'),
|
||||||
'RetailcrmAbandonedCartsEvent' => new \DateInterval('PT1M')
|
'RetailcrmAbandonedCartsEvent' => new \DateInterval('PT1M')
|
||||||
|
);
|
||||||
|
|
||||||
|
RetailcrmJobManager::startJobs(self::filter(
|
||||||
|
'RetailcrmFilterJobManagerIntervals',
|
||||||
|
$intervals
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user