sdk-php
sdk-php copied to clipboard
Add an ability to set timeout for all client calls
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"');
Currently, if the Temporal server is not reachable, the PHP client will hang forever.