internal 1.1.13__py3-none-any.whl → 1.1.15__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.

Potentially problematic release.


This version of internal might be problematic. Click here for more details.

internal/http/requests.py CHANGED
@@ -77,7 +77,11 @@ async def async_request(app: FastAPI, method, url, current_user: dict = None,
77
77
  current_delay = request_retry_delay_initial_seconds
78
78
 
79
79
  while retries <= request_retry_count:
80
- app.state.logger.warn(f"【{app.title}】 \nURL: {method} {url} \nkwargs: {kwargs} \n嘗試送請求 (第 {retries + 1} 次嘗試)...")
80
+ if retries == 0:
81
+ app.state.logger.warn(f"【{app.title}】 \nURL: {method} {url} \nkwargs: {kwargs} \n重新嘗試送請求 (第 1 次嘗試)...")
82
+ else:
83
+ app.state.logger.warn(f"【{app.title}】 \nURL: {method} {url} \nkwargs: {kwargs} \n重新嘗試送請求 (第 {retries} 次嘗試)...")
84
+
81
85
  try:
82
86
  # 使用 await 關鍵字等待異步請求完成
83
87
  response = await invoke_request(timeout, method, url, app, **kwargs)
@@ -121,7 +125,11 @@ async def send_webhook_message(app: FastAPI, message: str):
121
125
  current_delay = app.state.config.WEBHOOK_RETRY_DELAY_INITIAL_SECONDS
122
126
 
123
127
  while retries <= retry_count:
124
- app.state.logger.warn(f"嘗試發送訊息 (第 {retries + 1} 次嘗試)...")
128
+ if retries == 0:
129
+ app.state.logger.warn(f"嘗試發送訊息 (第 1 次嘗試)...")
130
+ else:
131
+ app.state.logger.warn(f"重新嘗試發送訊息 (第 {retries} 次嘗試)...")
132
+
125
133
  try:
126
134
  # 使用 await 關鍵字等待異步請求完成
127
135
  response = await invoke_webhook_message_api(app, message)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: internal
3
- Version: 1.1.13
3
+ Version: 1.1.15
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -23,7 +23,7 @@ internal/ext/amazon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
23
23
  internal/ext/amazon/aws/__init__.py,sha256=2YFjb-rHG1JaZGZiZffYDesgTAJjDshOqQbswOYzhP8,834
24
24
  internal/ext/amazon/aws/const.py,sha256=l4WMg5bKWujwOKABBkCO2zclNg3abnYOfbhD7DG8GsA,109
25
25
  internal/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
- internal/http/requests.py,sha256=SD1jClXQ1rQjSY143cL-vd8bC6yHcue7REDetWU3Sso,8106
26
+ internal/http/requests.py,sha256=4lYIlGv1AwgljNMsvr7hvsombIiKY_NY-sVYRY_sff4,8442
27
27
  internal/http/responses.py,sha256=zvU0iRQ9-qxeEZfKmuvTi8lv9DFcaNAsHlQKOTCpVzw,2945
28
28
  internal/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  internal/interface/base_interface.py,sha256=3YaVjIgLi_pZpLk5SEIk8WVkuICM8qPavT8rB0MdB5U,1536
@@ -34,6 +34,6 @@ internal/model/base_model.py,sha256=hxleV8fYNvFgUoYmCv_inEP3kA4tD4HhCBCNFVK8SZg,
34
34
  internal/model/operate.py,sha256=QSM6yXYXpJMwrqkUGEWZLrEBaUgqHwVHY_Fi4S42hKc,3190
35
35
  internal/utils.py,sha256=i6YZdiXsiWnOjRdlJ6afNCGpyMe3Uo9mhm3xlQBy3Ls,2824
36
36
  internal/validator_utils.py,sha256=CqjaVFoAu5MqvBG_AkTP-r7AliWawtUWB851USj4moI,1519
37
- internal-1.1.13.dist-info/METADATA,sha256=VPqzG5UnLdEAxu2d8NYv2wQ8TDlEhiV_zzYHY84peQA,939
38
- internal-1.1.13.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
39
- internal-1.1.13.dist-info/RECORD,,
37
+ internal-1.1.15.dist-info/METADATA,sha256=H4UF3FhDDqzmck2hOVERS5M-C2XB1nGoq31g0zc5L9o,939
38
+ internal-1.1.15.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
39
+ internal-1.1.15.dist-info/RECORD,,