I am developing a plugin for WordPress. I am receiving products from a third-party API, but when I send requests to the WooCommerce REST API, I get an internal server error or a WooCommerce HTTP client error. Some products are imported, but then the import process stops in WooCommerce. The products can be imported completely if I manually restart the plugin each time. I am using batch What would be the best solution for this? $createChunks = array_chunk($creates, 90); foreach ($createChunks as $chunk) { $this->woocommerce->post('products/batch', ['create' => $chunk]); sleep(2); I am using batch, and timeout of 2seconds, increased memory size to 512M, and script execution time 3600. Also i am using hetzner hosting.