Retrieve RetryOptions in ActivityInterceptor impl class

Hi,

I’m looking to access the retry options configured for the current activity within my activity interceptor implementation. We are currently using Temporal SDK version 1.29. I noticed that the ActivityInfo class in the latest SDK version includes a getRetryOptions() method, but this doesn’t appear to be available in 1.29. Is there any way to retrieve this information in version 1.29?

@maxim can you suggest on this

It not exposed in older sdk versiond. If cannot update sdk, pass it as activity input then can get in interceptor

@tihomir @maxim iI upgraded our Java SDK to 1.32.0 to use retry options in the ActivityInterceptor. Even though I set method‑level RetryOptions, the interceptor still shows the Temporal defaults when I call:

activityExecutionContext.getInfo().getRetryOptions()

Current output: RetryOptions{initialInterval=PT1S, backoffCoefficient=2.0, maximumAttempts=0, maximumInterval=null, doNotRetry=[]}

Verified in the workflow history (ActivityTaskScheduled → RetryPolicy) that our custom values were recorded

Doc mentions Temporal SDK and Temporal Server are version independent . Temporal Server right now uses 1.27.2 . @tihomir can you update on this

Temporal Server right now uses 1.27.2

Server started populating RetryPolicy based on your configuration since release 1.28.0. This was added via pr here that got released in 1.28.0 server release.

Doc mentions Temporal SDK and Temporal Server are version independent

That is correct, but if you want to use certain feature in SDK you have to align it with server version that exposes that feature. Upgrading server version as mentioned should unblock you.