lib/libgss/action_request.rb in libgss-0.6.0 vs lib/libgss/action_request.rb in libgss-0.6.1
- old
+ new
@@ -50,10 +50,12 @@
action
end
# アクション群を実行するために実際にHTTPリクエストを送信します。
def send_request(&callback)
- res = @httpclient.post(action_url, {"inputs" => @actions.map(&:to_hash)}.to_json, req_headers)
+ res = Libgss.with_retry("action_request") do
+ @httpclient.post(action_url, {"inputs" => @actions.map(&:to_hash)}.to_json, req_headers)
+ end
case res.code.to_i
when 200..299 then # OK
else
raise Error, "failed to send action request: [#{res.code}] #{res.body}"
end