Consistency Issue? #493
Unanswered
erich-team
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Could you please provide some minimal but still complete code examples to reproduce the issue? Right now it isn't clear what is an expected result in your examples. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not entirely sure this is an issue, with either dynamoid or dynamodb or just just an issue with how I'm approaching this. So, I'm posting this here instead of as an issue.
The Background
Given the models
I instantiate
ChildClass
which kicks off what is likely the familiar process of calling an external system to do some work and call back in our system with the response. (ChildClass#call_external_system
).ChildClass#full_response
is called,#url
is set,#full_response
is set, the object is persisted and#enqueue_evaluate_response
is called, kicking off a job where something is done with URL and the response.This is a pattern I've used hundreds of times in this application.
The callback into the system usually takes place on the order minutes after ChildClass is initially instantiated.
The Complication
Put simply
#url
and#full_response
are alwaysnil
insideSomeJob
, even, ifSomeJob
later. Not surprisingly the values in#attributes
and#attributes_before_type_case
are also nil. I have checked the AWS console and URL is populated.To further complicate matters:
Similarly
Lastly
The Conclusion
I'm crazy. Or I'm confused. Or there's a bug. Keep in mind, the DynamoDB console shows all the data being there.
Beta Was this translation helpful? Give feedback.
All reactions