GX-Task #70786
Von Till Tepelmann vor etwa 1 Jahr aktualisiert
Beim Import von Afterbuy Produkten kann es zu einen Servertimeout kommen, wenn man sehr viele Artikel hat.
Der Import sollte generell nicht über den Webserver laufen, sondern über einen speziellen Aufruf, sodass der Servertimeout getrennt konfiguriert werden kann.
Das Problem tritt auf, wenn der CronJob alle 15 Minuten versucht große Mengen Produkte von Afterbuy zu importieren, aber die Daten nicht vollständig während der Laufzeit für das Script verarbeitet werden können.
--------------------------------
When importing Afterbuy products, a server timeout can occur if you have a large number of products.
The import should generally not run via the web server, but via a special call so that the server timeout can be configured separately.
The problem occurs when the CronJob tries to import large quantities of products from Afterbuy every 15 minutes, but the data cannot be processed completely during the runtime for the script.
-----------------------
``` php
Error importing products (actionImportStep) in /var/www/GXModules/Gambio/Afterbuy/Admin/Classes/AfterbuyXML/AfterbuyXMLService.php:95: cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) #0 /var/www/GXModules/Gambio/Afterbuy/Admin/Classes/AfterbuyXML/AfterbuyXMLService.php(215): GXModules\Gambio\Afterbuy\Admin\Classes\AfterbuyXML\AfterbuyXMLService->performCall('GetShopProducts', Array) #1 /var/www/GXModules/Gambio/Afterbuy/Admin/Classes/Products/ProductImportRunner.php(93): GXModules\Gambio\Afterbuy\Admin\Classes\AfterbuyXML\AfterbuyXMLService->getShopProductsModifiedSinceRange(Object(DateTimeImmutable), 10, 0, false, 1) #2 /var/www/GXModules/Gambio/Afterbuy/Admin/Classes/Controllers/GambioAfterbuyModuleCenterModuleController.inc.php(553): GXModules\Gambio\Afterbuy\Admin\Classes\Products\ProductImportRunner->run() #3 /var/www/GXModules/Gambio/Afterbuy/Admin/Classes/Controllers/GambioAfterbuyModuleCenterModuleController.inc.php(432): GambioAfterbuyModuleCenterModuleController->importProducts() #4 /var/www/GXEngine/Services/System/Http/HttpViewController.inc.php(148): GambioAfterbuyModuleCenterModuleController->actionImportStep() #5 /var/www/GXEngine/Services/System/Http/HttpViewController.inc.php(107): HttpViewController->_callActionMethod('ImportStep') #6 /var/www/GXEngine/Services/System/Http/HttpDispatcher.inc.php(71): HttpViewController->proceed(Object(HttpContextServerData)) #7 /var/www/GXEngine/Services/System/Http/HttpService.inc.php(66): HttpDispatcher->dispatch(Object(HttpContextServerData)) #8 /var/www/admin/admin.php(15): HttpService->handle(Object(HttpContextServerData)) #9 {main}
```