airbyte-cdk 6.57.3__py3-none-any.whl → 6.57.3.post2.dev16088474497__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -259,7 +259,7 @@ class HttpClient:
259
259
  max_tries = max(0, max_retries) + 1
260
260
  max_time = self._max_time
261
261
 
262
- user_backoff_handler = user_defined_backoff_handler(max_tries=max_tries, max_time=max_time)(
262
+ user_backoff_handler = user_defined_backoff_handler(max_tries=max_tries, max_time=max_time, request_url=request.url)(
263
263
  self._send
264
264
  )
265
265
  rate_limit_backoff_handler = rate_limit_default_backoff_handler(max_tries=max_tries)
@@ -101,7 +101,7 @@ def http_client_default_backoff_handler(
101
101
 
102
102
 
103
103
  def user_defined_backoff_handler(
104
- max_tries: Optional[int], max_time: Optional[int] = None, **kwargs: Any
104
+ max_tries: Optional[int], max_time: Optional[int] = None, request_url: Optional[str] = None, **kwargs: Any
105
105
  ) -> Callable[[SendRequestCallableType], SendRequestCallableType]:
106
106
  def sleep_on_ratelimit(details: Mapping[str, Any]) -> None:
107
107
  _, exc, _ = sys.exc_info()
@@ -111,7 +111,8 @@ def user_defined_backoff_handler(
111
111
  f"Status code: {exc.response.status_code!r}, Response Content: {exc.response.content!r}"
112
112
  )
113
113
  retry_after = exc.backoff
114
- logger.info(f"Retrying. Sleeping for {retry_after} seconds")
114
+ # include logging og the current time to help with debugging
115
+ logger.info(f"Retrying. Sleeping for {retry_after} seconds at {time.strftime('%Y-%m-%d %H:%M:%S')} for URL: {request_url or 'unknown'}")
115
116
  time.sleep(retry_after + 1) # extra second to cover any fractions of second
116
117
 
117
118
  def log_give_up(details: Mapping[str, Any]) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airbyte-cdk
3
- Version: 6.57.3
3
+ Version: 6.57.3.post2.dev16088474497
4
4
  Summary: A framework for writing Airbyte Connectors.
5
5
  Home-page: https://airbyte.com
6
6
  License: MIT
@@ -349,8 +349,8 @@ airbyte_cdk/sources/streams/http/error_handlers/json_error_message_parser.py,sha
349
349
  airbyte_cdk/sources/streams/http/error_handlers/response_models.py,sha256=xGIVELBFY0TmH9aUq1ikoqJz8oHLr6di2JLvKWVEO-s,2236
350
350
  airbyte_cdk/sources/streams/http/exceptions.py,sha256=njC7MlMJoFYcSGz4mIp6-bqLFTr6vC8ej25X0oSeyjE,1824
351
351
  airbyte_cdk/sources/streams/http/http.py,sha256=0uariNq8OFnlX7iqOHwBhecxA-Hfd5hSY8_XCEgn3jI,28499
352
- airbyte_cdk/sources/streams/http/http_client.py,sha256=tDE0ROtxjGMVphvsw8INvGMtZ97hIF-v47pZ3jIyiwc,23011
353
- airbyte_cdk/sources/streams/http/rate_limiting.py,sha256=IwdjrHKUnU97XO4qONgYRv4YYW51xQ8SJm4WLafXDB8,6351
352
+ airbyte_cdk/sources/streams/http/http_client.py,sha256=zLt4hAkkm5VyD5aRoZ69DESN-HG6zYmfccIxXzBY8Z0,23036
353
+ airbyte_cdk/sources/streams/http/rate_limiting.py,sha256=aAjGpRjbeAYGzUif8lLo7oDL-B2UmlN2UFPcsGtpdw8,6535
354
354
  airbyte_cdk/sources/streams/http/requests_native_auth/__init__.py,sha256=RN0D3nOX1xLgwEwKWu6pkGy3XqBFzKSNZ8Lf6umU2eY,413
355
355
  airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py,sha256=2vLa1zMWxIfaj5iLi404Y2YCgC0uDhRCJCvXDwcFBys,19569
356
356
  airbyte_cdk/sources/streams/http/requests_native_auth/abstract_token.py,sha256=Y3n7J-sk5yGjv_OxtY6Z6k0PEsFZmtIRi-x0KCbaHdA,1010
@@ -424,9 +424,9 @@ airbyte_cdk/utils/slice_hasher.py,sha256=EDxgROHDbfG-QKQb59m7h_7crN1tRiawdf5uU7G
424
424
  airbyte_cdk/utils/spec_schema_transformations.py,sha256=-5HTuNsnDBAhj-oLeQXwpTGA0HdcjFOf2zTEMUTTg_Y,816
425
425
  airbyte_cdk/utils/stream_status_utils.py,sha256=ZmBoiy5HVbUEHAMrUONxZvxnvfV9CesmQJLDTAIWnWw,1171
426
426
  airbyte_cdk/utils/traced_exception.py,sha256=C8uIBuCL_E4WnBAOPSxBicD06JAldoN9fGsQDp463OY,6292
427
- airbyte_cdk-6.57.3.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
428
- airbyte_cdk-6.57.3.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
429
- airbyte_cdk-6.57.3.dist-info/METADATA,sha256=WnXRWs7wnSS-hODZWtjblBY2uvTISh894LHbICkvq7w,6477
430
- airbyte_cdk-6.57.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
431
- airbyte_cdk-6.57.3.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
432
- airbyte_cdk-6.57.3.dist-info/RECORD,,
427
+ airbyte_cdk-6.57.3.post2.dev16088474497.dist-info/LICENSE.txt,sha256=Wfe61S4BaGPj404v8lrAbvhjYR68SHlkzeYrg3_bbuM,1051
428
+ airbyte_cdk-6.57.3.post2.dev16088474497.dist-info/LICENSE_SHORT,sha256=aqF6D1NcESmpn-cqsxBtszTEnHKnlsp8L4x9wAh3Nxg,55
429
+ airbyte_cdk-6.57.3.post2.dev16088474497.dist-info/METADATA,sha256=nggEcxpdGIFBdk5Vbn8bs__1S4zJ4joaPgEYbVYvwbY,6498
430
+ airbyte_cdk-6.57.3.post2.dev16088474497.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
431
+ airbyte_cdk-6.57.3.post2.dev16088474497.dist-info/entry_points.txt,sha256=AKWbEkHfpzzk9nF9tqBUaw1MbvTM4mGtEzmZQm0ZWvM,139
432
+ airbyte_cdk-6.57.3.post2.dev16088474497.dist-info/RECORD,,