Skip to content

Commit

Permalink
Merge pull request #26 from publiclab/throttle_status_update
Browse files Browse the repository at this point in the history
Increase delay for updating status.json
  • Loading branch information
icarito authored May 4, 2019
2 parents ee2a78e + e025e00 commit 8c8ef75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def initialize
def save
# need to save status.json file with above properties as strings
if @directory.files.head("#{@export_id}/status.json")
sleep 1
sleep 2 # or we hit "Too many requests"
stat = @directory.files.get("#{@export_id}/status.json")
stat.destroy
end
Expand Down

0 comments on commit 8c8ef75

Please sign in to comment.