atk-common 3.11.0__py3-none-any.whl → 3.13.0__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.
- atk_common/classes/http_response_handler.py +4 -4
- atk_common/enums/__init__.py +2 -0
- atk_common/enums/mq_retry_action_type_enum.py +6 -0
- atk_common/utils/consumer_retry_handler.py +2 -1
- {atk_common-3.11.0.dist-info → atk_common-3.13.0.dist-info}/METADATA +1 -1
- {atk_common-3.11.0.dist-info → atk_common-3.13.0.dist-info}/RECORD +9 -8
- {atk_common-3.11.0.dist-info → atk_common-3.13.0.dist-info}/WHEEL +0 -0
- {atk_common-3.11.0.dist-info → atk_common-3.13.0.dist-info}/licenses/license.txt +0 -0
- {atk_common-3.11.0.dist-info → atk_common-3.13.0.dist-info}/top_level.txt +0 -0
@@ -37,8 +37,8 @@ class HttpResponseHandler(IHttpResponseHandler):
|
|
37
37
|
mimetype=response.get('contentType'),
|
38
38
|
headers=response.get('httpHeaders')
|
39
39
|
)
|
40
|
-
elif is_http_status_internal(response('statusCode')):
|
40
|
+
elif is_http_status_internal(response.get('statusCode')):
|
41
41
|
if is_response_http(response):
|
42
|
-
return self.error_handler.resend_error_entity(response('responseMsg'))
|
43
|
-
return self.error_handler.get_error_entity(response('responseMsg'), method, ApiErrorType.INTERNAL, response('statusCode'))
|
44
|
-
return self.error_handler.get_error_entity(response('responseMsg'), method, ApiErrorType.CONNECTION, response('statusCode'))
|
42
|
+
return self.error_handler.resend_error_entity(response.get('responseMsg'))
|
43
|
+
return self.error_handler.get_error_entity(response.get('responseMsg'), method, ApiErrorType.INTERNAL, response.get('statusCode'))
|
44
|
+
return self.error_handler.get_error_entity(response.get('responseMsg'), method, ApiErrorType.CONNECTION, response.get('statusCode'))
|
atk_common/enums/__init__.py
CHANGED
@@ -16,6 +16,7 @@ from atk_common.enums.image_part_type_enum import ImagePartType
|
|
16
16
|
from atk_common.enums.image_shelf_type_enum import ImageShelfType
|
17
17
|
from atk_common.enums.log_level_enum import LogLevel
|
18
18
|
from atk_common.enums.metering_direction_enum import MeteringDirection
|
19
|
+
from atk_common.enums.mq_retry_action_type_enum import MqRetryActionType
|
19
20
|
from atk_common.enums.multimotor_status_type_enum import MultiMotorStatusType
|
20
21
|
from atk_common.enums.piezo_vehicle_type_enum import PiezoVehicleType
|
21
22
|
from atk_common.enums.process_status_type_enum import ProcessStatusType
|
@@ -46,6 +47,7 @@ __all__ = [
|
|
46
47
|
'ImageShelfType',
|
47
48
|
'LogLevel',
|
48
49
|
'MeteringDirection',
|
50
|
+
'MqRetryActionType',
|
49
51
|
'MultiMotorStatusType',
|
50
52
|
'PiezoVehicleType',
|
51
53
|
'ProcessStatusType',
|
@@ -33,7 +33,8 @@ def create_retry_handler(process_func, connection, exchange, routing_key, should
|
|
33
33
|
content_type=message.content_type,
|
34
34
|
content_encoding=message.content_encoding,
|
35
35
|
headers=message.headers,
|
36
|
-
timestamp=message.properties.get("timestamp")
|
36
|
+
timestamp=message.properties.get("timestamp"),
|
37
|
+
delivery_mode=2
|
37
38
|
)
|
38
39
|
message.ack()
|
39
40
|
else:
|
@@ -21,9 +21,9 @@ atk_common/classes/bo_logger.py,sha256=wo1-BNWZjzSnlcM7c0LB7tK__2g3BENXvSvCLEiTO
|
|
21
21
|
atk_common/classes/docker_handler.py,sha256=VNJecc2ZWcpwNBa61QTGM_kYrsoZTjktMcFRFGF4xI4,3048
|
22
22
|
atk_common/classes/env_handler.py,sha256=h3snKwHwDvfc2dt1vgHasqv8n_vnsI9J2MAr-XM5oow,1283
|
23
23
|
atk_common/classes/error_handler.py,sha256=DgRzWx4Yu8PKX1bqj55aWhrkqb92ebDaEwtxgKhTLls,3270
|
24
|
-
atk_common/classes/http_response_handler.py,sha256=
|
24
|
+
atk_common/classes/http_response_handler.py,sha256=qgtGyEwUe4lIiayS6syWanr2VE6GaKHddazNL_PxEFM,2327
|
25
25
|
atk_common/classes/rabbitmq_consumer.py,sha256=jct1UnfP-PU3IeWW2S_9dQ7FxmY0_M8YwZadFMv52j8,2936
|
26
|
-
atk_common/enums/__init__.py,sha256=
|
26
|
+
atk_common/enums/__init__.py,sha256=JjIQ_bHIGxfWtf9Mlj36Gumll4otgLj0cR_oXF46XyY,2736
|
27
27
|
atk_common/enums/api_error_type_enum.py,sha256=9oW6ZaZ3lhMwR8r2sVNWGliS9C_jV-otiOYdezAuTp0,91
|
28
28
|
atk_common/enums/camera_cabinet_type_enum.py,sha256=U2NVrsTCBgaMRwYJamnjshAW8Y7xlOVjvUzakdgVH9A,90
|
29
29
|
atk_common/enums/camera_role_enum.py,sha256=E0TH6zXj5EA889D7UndGP7xsgg5W23SneqJCFkA6BII,82
|
@@ -48,6 +48,7 @@ atk_common/enums/image_shelf_type.py,sha256=m2-nWi83tWi-KYpTMphyt-yhK5iGNvHrJBNY
|
|
48
48
|
atk_common/enums/image_shelf_type_enum.py,sha256=m2-nWi83tWi-KYpTMphyt-yhK5iGNvHrJBNYjodx1P4,84
|
49
49
|
atk_common/enums/log_level_enum.py,sha256=FxLCM0WQefqmAIA-I8TZNFalDgcMv7c85HDeUZcUIHA,110
|
50
50
|
atk_common/enums/metering_direction_enum.py,sha256=ramBPt0fK_NsToCqiYmtzDVNsLVGbeF39TmSpn_ghTY,107
|
51
|
+
atk_common/enums/mq_retry_action_type_enum.py,sha256=WQTuecfh2TqmjWgQgo-iYQXtXkwhhfRXpNAnKFOCbK0,119
|
51
52
|
atk_common/enums/multimotor_status_type_enum.py,sha256=TaoqSb6OjU17VAmFun28o8XhU3fkAKg_TQ9Kq8Y0Ff4,88
|
52
53
|
atk_common/enums/piezo_vehicle_type_enum.py,sha256=tlFk9dP7KkJVBna8SIJf6MH9zJD_szSUcDxFATJ6LZE,89
|
53
54
|
atk_common/enums/process_status_enum.py,sha256=09kRE5Cy8Sc7e7wf5gSkIw0RnNzFAWxIrMvn-aElqt8,140
|
@@ -70,7 +71,7 @@ atk_common/interfaces/error_handler_interface.py,sha256=ErhQ69T3fCYUl6sS5GwiMgW-
|
|
70
71
|
atk_common/interfaces/http_response_handler_interface.py,sha256=Cl_njN_klHz1u06FCJPata1dua1w4Cs-Qt9Rg7uaB1c,169
|
71
72
|
atk_common/interfaces/logger_interface.py,sha256=jK1gwkB_XmvqsTENhfOsw2QBplay16yVzc_qDSkgFyk,423
|
72
73
|
atk_common/utils/__init__.py,sha256=hU5xicoI6dXRDz0gQADIDo2YbiL2UptTehVBISReIDo,1857
|
73
|
-
atk_common/utils/consumer_retry_handler.py,sha256
|
74
|
+
atk_common/utils/consumer_retry_handler.py,sha256=F859moeAEtHg5YvC7pA1sxR7duZ6_tZjTorQXiQLVaM,2609
|
74
75
|
atk_common/utils/datetime_utils.py,sha256=h3tv6iPD4peBXLCAcws41nuxIM4KpR1vk71LYXTDHKo,3662
|
75
76
|
atk_common/utils/db_utils.py,sha256=odUtXcS7Mumw5eGyVyVimL_U_lP7TqMX9v8nWO5nMvg,902
|
76
77
|
atk_common/utils/default_should_retry.py,sha256=qghFbU71ygC8ARc0jkbDlxwZtwEPUqO8vGhIhGJX-Ao,838
|
@@ -81,7 +82,7 @@ atk_common/utils/http_utils.py,sha256=eSRuQeDgN0ISQdByZqE6cIGXoorcAXz7PEtVntHUKA
|
|
81
82
|
atk_common/utils/internal_response_utils.py,sha256=2X9eLFEy1pO3Aesj1IRXg2yprwNcBDM5_dXaA5vfmMI,694
|
82
83
|
atk_common/utils/mq_utils.py,sha256=DmVcXIZHG45p7cQVvgen6OT8QbW_UifFFJGJBybTkJQ,1835
|
83
84
|
atk_common/utils/str_utils.py,sha256=sg3jwTTIfQvgGP-lcY5Xh4PXXhKWse_4HswBQYQKEo4,260
|
84
|
-
atk_common-3.
|
85
|
+
atk_common-3.13.0.dist-info/licenses/license.txt,sha256=_0O6fWM00-wTurDjnZhUP_N5QiwGhItaQZqHq5eqadA,1063
|
85
86
|
atk_package/__init__.py,sha256=okIFEefQhQrw6DZg6oCEVWsEdkVCk-57VXBW0IUG_wU,834
|
86
87
|
atk_package/datetime_utils.py,sha256=qsVF7l90P1-xukG2tV_jLqG9J_Yfl5wTpyfrdPBlyMo,239
|
87
88
|
atk_package/env_utils.py,sha256=bXOrxM3fZUslqfmZt75iphbEJHbG4riJa8XOVzPwIII,313
|
@@ -94,7 +95,7 @@ atk_package/enums/__init__.py,sha256=EtUr_--MQj1Rc_R0sF_ELXIThmhpfmhDWq3YaK9oQMk
|
|
94
95
|
atk_package/enums/command_status_enum.py,sha256=M2Nln27a_DbzI07-gfytWQk2X087JhkU6Fmard5qVHs,127
|
95
96
|
atk_package/enums/speed_control_status_enum.py,sha256=qpURh0K1L1tSpbrzVnckoe4hUn1illIkbo7k4mLfzIM,182
|
96
97
|
shared_python_atk_enforcement/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
97
|
-
atk_common-3.
|
98
|
-
atk_common-3.
|
99
|
-
atk_common-3.
|
100
|
-
atk_common-3.
|
98
|
+
atk_common-3.13.0.dist-info/METADATA,sha256=3bqNmIYytqi8exHwBEQ3W3I8UGX6oncoxRiCngRtTus,1761
|
99
|
+
atk_common-3.13.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
100
|
+
atk_common-3.13.0.dist-info/top_level.txt,sha256=4CwRjkLnheIdI4jQwc4tK3dbRc58WqUmoqjkdDTWlME,41
|
101
|
+
atk_common-3.13.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|