wsharba / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 1 forks source link

JSON publisher should retry on fail #967

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From gmaclennan@digital-democracy.org

"What does the ODK Aggregate Z-ALPHA JSON publish do when the POST fails? Does 
it retry? It would be great if it kept retrying for a set period of time if the 
initial POST failed."

Not too sure the JSON publisher retries. If it doesn't it should.

Original issue reported on code.google.com by yano...@nafundi.com on 28 Jan 2014 at 11:11

GoogleCodeExporter commented 9 years ago
From Mitch:

"All publishers retry on failure. 

To control resource usage on AppEngine, when a failure occurs, the next 
publishing attempt is delayed for 60 seconds. If that fails, then we attempt to 
publish only every 7.5 minutes.

If there is no website activity (no submissions coming in and no page views), 
we further slow our publishing to every 15 minutes.

The 7.5 minute back-off is intended to allow human intervention to correct the 
published-to server's problems.

I should add -- because of the nature of web service interactions, this retry 
behavior can cause duplicate records to be inserted into the published-to 
server. 

The end-user (or recipient server) is responsible for detecting and filtering 
out those duplicates."

Original comment by yano...@nafundi.com on 29 Jan 2014 at 6:13