omnata-plugin-runtime 0.2.20__py3-none-any.whl → 0.2.21__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.
- omnata_plugin_runtime/plugin_entrypoints.py +8 -4
- {omnata_plugin_runtime-0.2.20.dist-info → omnata_plugin_runtime-0.2.21.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.2.20.dist-info → omnata_plugin_runtime-0.2.21.dist-info}/RECORD +5 -5
- {omnata_plugin_runtime-0.2.20.dist-info → omnata_plugin_runtime-0.2.21.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.2.20.dist-info → omnata_plugin_runtime-0.2.21.dist-info}/WHEEL +0 -0
@@ -97,17 +97,21 @@ class PluginEntrypoint:
|
|
97
97
|
}
|
98
98
|
)
|
99
99
|
api_limits = list(all_api_limits_by_category.values())
|
100
|
+
return_dict = {}
|
101
|
+
(rate_limit_state_all, rate_limit_state_this_branch) = RateLimitState.collapse(request.rate_limits_state,request.sync_id, request.sync_branch_name)
|
100
102
|
# if any endpoint categories have no state, give them an empty state
|
101
103
|
for api_limit in api_limits:
|
102
|
-
if api_limit.endpoint_category not in
|
103
|
-
|
104
|
+
if api_limit.endpoint_category not in rate_limit_state_all:
|
105
|
+
rate_limit_state_all[api_limit.endpoint_category] = RateLimitState(
|
106
|
+
wait_until=None, previous_request_timestamps=None
|
107
|
+
)
|
108
|
+
if api_limit.endpoint_category not in rate_limit_state_this_branch:
|
109
|
+
rate_limit_state_this_branch[api_limit.endpoint_category] = RateLimitState(
|
104
110
|
wait_until=None, previous_request_timestamps=None
|
105
111
|
)
|
106
112
|
logger.info(
|
107
113
|
f"Rate limits state: {json.dumps(request.rate_limits_state, default=pydantic.json.pydantic_encoder)}"
|
108
114
|
)
|
109
|
-
return_dict = {}
|
110
|
-
(rate_limit_state_all, rate_limit_state_this_branch) = RateLimitState.collapse(request.rate_limits_state,request.sync_id, request.sync_branch_name)
|
111
115
|
|
112
116
|
if request.sync_direction == "outbound":
|
113
117
|
parameters = OutboundSyncConfigurationParameters(
|
@@ -4,9 +4,9 @@ omnata_plugin_runtime/configuration.py,sha256=D5y3IxGpI3a5B7cGHWRgCy-V7PD-nvnk-r
|
|
4
4
|
omnata_plugin_runtime/forms.py,sha256=a76q0mZep-Q1XYw0c0uXA0_qbYLwQGAwHZMpZ8125Is,15235
|
5
5
|
omnata_plugin_runtime/logging.py,sha256=Q6eSqrr3SzwfVAg4r4sV1dlxeNS_PzOtZfieoWUEOZQ,3232
|
6
6
|
omnata_plugin_runtime/omnata_plugin.py,sha256=mnG2dD7UDm1MIqNO_MmU7UbeEzl3HFH5jmmX2tkHJQ4,82532
|
7
|
-
omnata_plugin_runtime/plugin_entrypoints.py,sha256=
|
7
|
+
omnata_plugin_runtime/plugin_entrypoints.py,sha256=nRQ0B9VFm0r9CAmm-aAUEdV_Z6x4lbTuONTzdZ51gCI,22709
|
8
8
|
omnata_plugin_runtime/rate_limiting.py,sha256=5ynVXi8l4JdlVPhZu8BHGsiZC4srBXzfafpc_PuVRYI,12392
|
9
|
-
omnata_plugin_runtime-0.2.
|
10
|
-
omnata_plugin_runtime-0.2.
|
11
|
-
omnata_plugin_runtime-0.2.
|
12
|
-
omnata_plugin_runtime-0.2.
|
9
|
+
omnata_plugin_runtime-0.2.21.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
|
10
|
+
omnata_plugin_runtime-0.2.21.dist-info/METADATA,sha256=5Y7kwB5l6G38GM7_WFnomXqDpUCLdF_zX-BKgpL-D9A,1086
|
11
|
+
omnata_plugin_runtime-0.2.21.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
12
|
+
omnata_plugin_runtime-0.2.21.dist-info/RECORD,,
|
File without changes
|
File without changes
|