diff --git a/src/Internal/Client/WorkflowStub.php b/src/Internal/Client/WorkflowStub.php index 009d3b65..2c6f84a1 100644 --- a/src/Internal/Client/WorkflowStub.php +++ b/src/Internal/Client/WorkflowStub.php @@ -41,6 +41,7 @@ use Temporal\DataConverter\DataConverterInterface; use Temporal\DataConverter\EncodedValues; use Temporal\DataConverter\ValuesInterface; +use Temporal\Exception\Client\CanceledException; use Temporal\Exception\Client\ServiceClientException; use Temporal\Exception\Client\TimeoutException; use Temporal\Exception\Client\WorkflowException; @@ -301,7 +302,7 @@ static function ( } throw WorkflowServiceException::withoutMessage($input->workflowExecution, $input->workflowType, $e); - } catch (TimeoutException $e) { + } catch (TimeoutException|CanceledException $e) { throw WorkflowUpdateRPCTimeoutOrCanceledException::fromTimeoutOrCanceledException($e); } catch (\Throwable $e) { throw new WorkflowServiceException(null, $input->workflowExecution, $input->workflowType, $e);