From d6ff516d06a2ebdc5d6bc8da7bce30595c500da2 Mon Sep 17 00:00:00 2001 From: Ondrej Popelka Date: Fri, 19 Dec 2025 10:48:46 +0100 Subject: [PATCH] add network timeout setting https://linear.app/keboola/issue/AJDA-2040/investigate-and-fix-datascience-sandboxes-garbage-collector-cron-job --- src/AbstractClient.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/AbstractClient.php b/src/AbstractClient.php index 73123da..1fd7750 100644 --- a/src/AbstractClient.php +++ b/src/AbstractClient.php @@ -113,7 +113,12 @@ function (RequestInterface $request) use ($options) { )); } // finally, create the instance - return new GuzzleClient(['base_uri' => $options['apiUrl'], 'handler' => $handlerStack]); + return new GuzzleClient([ + 'base_uri' => $options['apiUrl'], + 'handler' => $handlerStack, + 'connect_timeout' => 10, + 'timeout' => 120, + ]); } protected function sendRequest(Request $request): array