omnata-plugin-runtime 0.5.4a123__py3-none-any.whl → 0.5.4a125__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/omnata_plugin.py +17 -14
- {omnata_plugin_runtime-0.5.4a123.dist-info → omnata_plugin_runtime-0.5.4a125.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.5.4a123.dist-info → omnata_plugin_runtime-0.5.4a125.dist-info}/RECORD +5 -5
- {omnata_plugin_runtime-0.5.4a123.dist-info → omnata_plugin_runtime-0.5.4a125.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.5.4a123.dist-info → omnata_plugin_runtime-0.5.4a125.dist-info}/WHEEL +0 -0
@@ -1007,20 +1007,23 @@ class InboundSyncRequest(SyncRequest):
|
|
1007
1007
|
"""
|
1008
1008
|
Sends a message to the plugin with the current progress of the sync run, if it has changed since last time.
|
1009
1009
|
"""
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1010
|
+
if self._apply_results is not None:
|
1011
|
+
with self._apply_results_lock:
|
1012
|
+
new_progress_update = PluginMessageStreamProgressUpdate(
|
1013
|
+
stream_total_counts=self._stream_record_counts,
|
1014
|
+
# records could have been marked as completed, but still have results to apply
|
1015
|
+
completed_streams=[s for s in self._completed_streams if s not in self._apply_results or self._apply_results[s] is None],
|
1016
|
+
stream_errors=self._omnata_log_handler.stream_global_errors,
|
1017
|
+
total_records_estimate=self._total_records_estimate
|
1018
|
+
)
|
1019
|
+
if self._last_stream_progress_update is None or new_progress_update != self._last_stream_progress_update:
|
1020
|
+
result = self._plugin_message(
|
1021
|
+
message=new_progress_update,
|
1022
|
+
ignore_errors=ignore_errors
|
1023
|
+
)
|
1024
|
+
if result is None:
|
1025
|
+
return False
|
1026
|
+
self._last_stream_progress_update = new_progress_update
|
1024
1027
|
return True
|
1025
1028
|
|
1026
1029
|
def apply_cancellation(self):
|
{omnata_plugin_runtime-0.5.4a123.dist-info → omnata_plugin_runtime-0.5.4a125.dist-info}/RECORD
RENAMED
@@ -3,10 +3,10 @@ omnata_plugin_runtime/api.py,sha256=FxzTqri4no8ClkOm7vZADG8aD47jcGBCTTQDEORmOJM,
|
|
3
3
|
omnata_plugin_runtime/configuration.py,sha256=g_p8z0b23FQInlAaPuLIxpH_qoAbaEZp2ZL3m7Xml-A,36631
|
4
4
|
omnata_plugin_runtime/forms.py,sha256=GzSPEwcijsoPCXEO1mHiE8ylvX_KSE5TkhwqkymA2Ss,19755
|
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=XyiWPEFKoH0H8bYuTVgTacpL5OM2K3lVRjlayENuR9A,111528
|
7
7
|
omnata_plugin_runtime/plugin_entrypoints.py,sha256=JirYUbPBaN0UMh9t_uAHDdhaQZ7NUhdMJ11eHRKOoNY,29302
|
8
8
|
omnata_plugin_runtime/rate_limiting.py,sha256=DVQ_bc-mVLBkrU1PTns1MWXhHiLpSB5HkWCcdePtJ2A,25611
|
9
|
-
omnata_plugin_runtime-0.5.
|
10
|
-
omnata_plugin_runtime-0.5.
|
11
|
-
omnata_plugin_runtime-0.5.
|
12
|
-
omnata_plugin_runtime-0.5.
|
9
|
+
omnata_plugin_runtime-0.5.4a125.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
|
10
|
+
omnata_plugin_runtime-0.5.4a125.dist-info/METADATA,sha256=6RlZ4_hoJI98PfWY3fXj5sBqUR1ESDnexU9SPMN3Xkg,1951
|
11
|
+
omnata_plugin_runtime-0.5.4a125.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
12
|
+
omnata_plugin_runtime-0.5.4a125.dist-info/RECORD,,
|
{omnata_plugin_runtime-0.5.4a123.dist-info → omnata_plugin_runtime-0.5.4a125.dist-info}/LICENSE
RENAMED
File without changes
|
{omnata_plugin_runtime-0.5.4a123.dist-info → omnata_plugin_runtime-0.5.4a125.dist-info}/WHEEL
RENAMED
File without changes
|