-
Notifications
You must be signed in to change notification settings - Fork 59
Future drilling/wrapping with exponential retry #102
Description
Hi,
We're having a bit of an issue trying to get future response working with exponential_retry set, this seems to be the same issue as described at #11 and #48.
We're just trying a very simple asynchronous call that just returns "done" when called with no input, however future.get is not getting the result "done" and errors out as get does not appear to be a method. We've set the activity to retry up to 3 times using exponential_retry.
This is the current response from this basic workflow/activity using exponential retry in asynchronous call
[#<AWS::Flow::Utilities::AddressableFuture:0x000000016cc018 @_metadata=nil,
@return_value=#<AWS::Flow::Core::Future:0x000000016d7f80 @conditional=#
<AWS::Flow::Core::FiberConditionVariable:0x000000016d7f58 @waiters=[]>, @set=true, @result=#
<AWS::Flow::Utilities::AddressableFuture:0x000000016dc378 @_metadata=nil, @return_value=#
<AWS::Flow::Core::Future:0x000000016dc350 @conditional=#
<AWS::Flow::Core::FiberConditionVariable:0x000000016dc328 @waiters=[]>, @set=true, @result=#
<AWS::Flow::Utilities::AddressableFuture:0x000000016e8d80 @_metadata=#
<AWS::Flow::ActivityMetadata:0x000000016e8b78 @activity_id="Activity1">, @return_value=#
<AWS::Flow::Core::Future:0x000000016e8d58 @conditional=#
<AWS::Flow::Core::FiberConditionVariable:0x000000016e8ce0 @waiters=[]>, @set=true,
@result="done">>>>, @listeners=[#<Proc:0x000000016dd930@/home/ec2-user/.rvm/gems/ruby-
2.2.2/gems/aws-flow-3.1.0/lib/aws/flow/implementation.rb:221>]>>]It appears the response is wrapped in Addressable Future a few times. If we do not use exponential_retry then this issue does not occur and we can use future.get successfully.
I have tried the drill_on_future methods as described in the other tickets, however none of them seem to give me the "result".
Any advise is greatly appreciated.
Thanks