diff --git a/src/Internal/Client/WorkflowStub.php b/src/Internal/Client/WorkflowStub.php index 1aae9e85..2e35657b 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; @@ -306,7 +307,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);