Notifications and race conditions
Tuesday, November 22, 2016 at 02:35pmI am responding to certain inbound notification events (i.e. DOCUMENT_SIGNED and SIGNER_COMPLETE) by making outbound calls using the SDK.
For instance, when I get a SIGNER_COMPLETE notification, I make a call out to eSignLive to verify the status of all signers and retrieve the signed documents.
It appears that when I make the outbound call to eSignLive that the status information has not yet been updated and I get the old status. It seems like a classic race condition. If I check manually a few minutes later I get the correct status.
Should I wait for a few seconds before making the outbound call so that I get the correct data? If so, what is the recommended delay?
I'm testing in the sandbox environment.
Reply to: Notifications and race conditions
Tuesday, November 22, 2016 at 03:12pm