omnata-plugin-runtime 0.4.0a86__py3-none-any.whl → 0.4.0a88__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- omnata_plugin_runtime/omnata_plugin.py +7 -8
- {omnata_plugin_runtime-0.4.0a86.dist-info → omnata_plugin_runtime-0.4.0a88.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.4.0a86.dist-info → omnata_plugin_runtime-0.4.0a88.dist-info}/RECORD +5 -5
- {omnata_plugin_runtime-0.4.0a86.dist-info → omnata_plugin_runtime-0.4.0a88.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.4.0a86.dist-info → omnata_plugin_runtime-0.4.0a88.dist-info}/WHEEL +0 -0
@@ -350,12 +350,13 @@ class SyncRequest(ABC):
|
|
350
350
|
update_rate_limit_result = self._plugin_message(
|
351
351
|
PluginMessageRateLimitState(rate_limit_state=self.rate_limit_state_this_sync_and_branch)
|
352
352
|
)
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
353
|
+
if update_rate_limit_result is not None:
|
354
|
+
sync_id:int = update_rate_limit_result["sync_id"]
|
355
|
+
sync_branch_name:str = update_rate_limit_result["sync_branch_name"]
|
356
|
+
latest_state:Dict[int,Dict[str,Dict[str,RateLimitState]]] = parse_obj_as(Dict[int,Dict[str,Dict[str,RateLimitState]]],update_rate_limit_result["latest_state"])
|
357
|
+
(rate_limit_state_all, rate_limit_state_this_branch) = RateLimitState.collapse(latest_state,sync_id, sync_branch_name)
|
358
|
+
self.rate_limit_state_all = rate_limit_state_all
|
359
|
+
self.rate_limit_state_this_sync_and_branch = rate_limit_state_this_branch
|
359
360
|
else:
|
360
361
|
logger.info("No rate limit state to update")
|
361
362
|
|
@@ -934,7 +935,6 @@ class InboundSyncRequest(SyncRequest):
|
|
934
935
|
] = self._stream_record_counts[stream_name] + total_length
|
935
936
|
results.extend(non_empty_dfs) # remove any None/empty dataframes
|
936
937
|
stream_names.append(stream_name)
|
937
|
-
self._session.sql("begin").collect()
|
938
938
|
if len(results) > 0:
|
939
939
|
logger.info(
|
940
940
|
f"Applying {len(results)} batches of queued results"
|
@@ -945,7 +945,6 @@ class InboundSyncRequest(SyncRequest):
|
|
945
945
|
self._apply_results_dataframe(stream_names, all_dfs)
|
946
946
|
# update the stream state object too
|
947
947
|
self._apply_latest_states()
|
948
|
-
self._session.sql("commit").collect()
|
949
948
|
for stream_name in stream_names:
|
950
949
|
self._apply_results[stream_name] = None
|
951
950
|
self._apply_results = {}
|
{omnata_plugin_runtime-0.4.0a86.dist-info → omnata_plugin_runtime-0.4.0a88.dist-info}/RECORD
RENAMED
@@ -3,10 +3,10 @@ omnata_plugin_runtime/api.py,sha256=W79CsAcl127Dzy-XVS9CzvzsbS3IigVH4QAhFFDkaXg,
|
|
3
3
|
omnata_plugin_runtime/configuration.py,sha256=7cMekoY8CeZAJHpASU6tCMidF55Hzfr7CD74jtebqIY,35742
|
4
4
|
omnata_plugin_runtime/forms.py,sha256=pw_aKVsXSz47EP8PFBI3VDwdSN5IjvZxp8JTjO1V130,18421
|
5
5
|
omnata_plugin_runtime/logging.py,sha256=bn7eKoNWvtuyTk7RTwBS9UARMtqkiICtgMtzq3KA2V0,3272
|
6
|
-
omnata_plugin_runtime/omnata_plugin.py,sha256=
|
6
|
+
omnata_plugin_runtime/omnata_plugin.py,sha256=iTt5a69IIQPlQvdMnynRVn3d825nx1M04NuXZUipLxI,105693
|
7
7
|
omnata_plugin_runtime/plugin_entrypoints.py,sha256=D2f0Qih7KTJNXIDYkA-E55RTEK_7Jtv9ySqspWxERVA,28272
|
8
8
|
omnata_plugin_runtime/rate_limiting.py,sha256=29Hjsr0i1rE8jERVdIFGINfQfp_kI3PDft-IM_ZxvCA,21509
|
9
|
-
omnata_plugin_runtime-0.4.
|
10
|
-
omnata_plugin_runtime-0.4.
|
11
|
-
omnata_plugin_runtime-0.4.
|
12
|
-
omnata_plugin_runtime-0.4.
|
9
|
+
omnata_plugin_runtime-0.4.0a88.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
|
10
|
+
omnata_plugin_runtime-0.4.0a88.dist-info/METADATA,sha256=i6A408aPm8ATPDIRGYGgmq58UMrzeeA_9c7SrUX7p0I,1603
|
11
|
+
omnata_plugin_runtime-0.4.0a88.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
12
|
+
omnata_plugin_runtime-0.4.0a88.dist-info/RECORD,,
|
{omnata_plugin_runtime-0.4.0a86.dist-info → omnata_plugin_runtime-0.4.0a88.dist-info}/LICENSE
RENAMED
File without changes
|
File without changes
|