You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/algolia.rb
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,9 @@
1
1
# frozen_string_literal: true
2
2
3
-
# Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
raiseApiError,"The maximum number of retries exceeded. (#{max_retries})"ifretries >= max_retries
3645
+
ifretries >= opts.max_retries
3646
+
raise(
3647
+
ApiError,
3648
+
"Stopped waiting for the task after #{opts.max_retries} retries. This does not mean the operation failed; it may still complete. If you need to keep polling, retry with a higher max_retries."
raiseApiError,"The maximum number of retries exceeded. (#{max_retries})"
3654
+
raise(
3655
+
ApiError,
3656
+
"Stopped waiting for the task after #{max_retries} retries. This does not mean the operation failed; it may still complete. If you need to keep polling, retry with a higher max_retries."
3657
+
)
3648
3658
end
3649
3659
3650
3660
# Helper: Wait for an application-level task to be published (completed) for a given `task_id`.
3651
3661
#
3652
3662
# @param task_id [Integer] the `task_id` returned in the method response. (required)
3653
-
# @param max_retries [Integer] the maximum number of retries. (optional, default to 50)
3663
+
# @param max_retries [Integer] the maximum number of retries. (optional, default to Algolia::ChunkedHelperOptions::DEFAULT_MAX_RETRIES)
3654
3664
# @param timeout [Proc] the function to decide how long to wait between retries. (optional)
3655
3665
# @param request_options [Hash] the requestOptions to send along with the query, they will be forwarded to the `get_task` method.
3656
3666
# @return [Http::Response] the last get_task response
raiseApiError,"The maximum number of retries exceeded. (#{max_retries})"
3684
+
raise(
3685
+
ApiError,
3686
+
"Stopped waiting for the task after #{max_retries} retries. This does not mean the operation failed; it may still complete. If you need to keep polling, retry with a higher max_retries."
3687
+
)
3675
3688
end
3676
3689
3677
3690
# Helper: Wait for an API key to be added, updated or deleted based on a given `operation`.
raiseApiError,"The maximum number of retries exceeded. (#{max_retries})"
3726
+
raise(
3727
+
ApiError,
3728
+
"Stopped waiting for the task after #{max_retries} retries. This does not mean the operation failed; it may still complete. If you need to keep polling, retry with a higher max_retries."
3729
+
)
3714
3730
end
3715
3731
3716
3732
whileretries < max_retries
@@ -3729,7 +3745,10 @@ def wait_for_api_key(
3729
3745
sleep(timeout.call(retries) / 1000.0)
3730
3746
end
3731
3747
3732
-
raiseApiError,"The maximum number of retries exceeded. (#{max_retries})"
3748
+
raise(
3749
+
ApiError,
3750
+
"Stopped waiting for the task after #{max_retries} retries. This does not mean the operation failed; it may still complete. If you need to keep polling, retry with a higher max_retries."
3751
+
)
3733
3752
end
3734
3753
3735
3754
# Helper: Iterate on the `browse` method of the client to allow aggregating objects of an index.
0 commit comments