Check your server version when using WorkflowIdReusePolicy TERMINATE_IF_RUNNING

has been added in Temporal server version 1.16.0.

You might run into the situation where your updated SDK version supports this id reuse policy, but your server version does not if its < 1.16.0.

If this is the case on the SDK client side you might see the notorious “deadline exceeded” error on your rpc calls. On the server end (frontend service) look for error with message:
Failed to process start workflow reuse policy: 4

If you run into this you would need to update the server version in order to use this workflow id reuse policy.