sdk-php icon indicating copy to clipboard operation
sdk-php copied to clipboard

Add an ability to set timeout for all client calls

Open roxblnfk opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

We can't control easily a gRPC client call timeout.

Describe the solution you'd like

Add withTimeout(int $timeout) method to Workflow Client class.

// Client call with custom timeout
$workflowClient->withTimeout(5)->listWorkflowExecutions('WorkflowType="foo"');

roxblnfk avatar Aug 09 '23 16:08 roxblnfk

Currently, if the Temporal server is not reachable, the PHP client will hang forever.

glennschmidt avatar Dec 04 '23 09:12 glennschmidt