omnata-plugin-runtime 0.3.15a53__py3-none-any.whl → 0.3.16__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.
@@ -899,9 +899,16 @@ class InboundSyncRequest(SyncRequest):
899
899
  results:List[pandas.DataFrame] = []
900
900
  stream_names:List[str] = []
901
901
  for stream_name, stream_results in self._apply_results.items():
902
- results.extend([
902
+ non_empty_dfs = [
903
903
  x for x in stream_results if x is not None and len(x) > 0
904
- ]) # remove any None/empty dataframes
904
+ ]
905
+ # get the total length of all the dataframes
906
+ total_length = sum([len(x) for x in non_empty_dfs])
907
+ # add the count of this batch to the total for this stream
908
+ self._stream_record_counts[
909
+ stream_name
910
+ ] = self._stream_record_counts[stream_name] + total_length
911
+ results.extend(non_empty_dfs) # remove any None/empty dataframes
905
912
  stream_names.append(stream_name)
906
913
  if len(results) > 0:
907
914
  logger.info(
@@ -911,13 +918,10 @@ class InboundSyncRequest(SyncRequest):
911
918
  all_dfs = pandas.concat(results)
912
919
  #logger.info(f"applying: {all_dfs}")
913
920
  self._apply_results_dataframe(stream_names, all_dfs)
914
- # add the count of this batch to the total for this stream
915
- self._stream_record_counts[
916
- stream_name
917
- ] = self._stream_record_counts[stream_name] + len(all_dfs)
918
921
  # update the stream state object too
919
922
  self._apply_latest_states()
920
- self._apply_results[stream_name] = None
923
+ for stream_name in stream_names:
924
+ self._apply_results[stream_name] = None
921
925
  self._apply_results = {}
922
926
  # update the inbound stream record counts, so we can see progress
923
927
  self._plugin_message(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.3.15a53
3
+ Version: 0.3.16
4
4
  Summary: Classes and common runtime components for building and running Omnata Plugins
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -3,10 +3,10 @@ omnata_plugin_runtime/api.py,sha256=_N5ok5LN7GDO4J9n3yduXp3tpjmhpySY__U2baiygrs,
3
3
  omnata_plugin_runtime/configuration.py,sha256=at29ExowF_T4_2U9gY0BF4IVdwC-vDytmNRHL7UCWh8,34742
4
4
  omnata_plugin_runtime/forms.py,sha256=30CJB24TqfLYNnkplZdUbeqA-P9rUIBujVKXw_S-wKY,18371
5
5
  omnata_plugin_runtime/logging.py,sha256=bn7eKoNWvtuyTk7RTwBS9UARMtqkiICtgMtzq3KA2V0,3272
6
- omnata_plugin_runtime/omnata_plugin.py,sha256=S-z_8rVjnqfBC_IPEvWVFxr4qJpgj7H3TsVS4grpERQ,98905
6
+ omnata_plugin_runtime/omnata_plugin.py,sha256=NcQx_ONt73ADBIoP__ZLbG-QAYL0qfEAxVcLr-rEbJk,99145
7
7
  omnata_plugin_runtime/plugin_entrypoints.py,sha256=_XgmWsrHoSshkl5Z2T27BAGVnBh4yH-8lni5sdGlSz8,27670
8
8
  omnata_plugin_runtime/rate_limiting.py,sha256=se6MftQI5NrVHaLb1hByPCgAESPQhkAgIG7KIU1clDU,16562
9
- omnata_plugin_runtime-0.3.15a53.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
10
- omnata_plugin_runtime-0.3.15a53.dist-info/METADATA,sha256=wjL9kge_CDr8in84SYvxD0ZTN9mmCim1eGc6Yp6V8bI,1604
11
- omnata_plugin_runtime-0.3.15a53.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
12
- omnata_plugin_runtime-0.3.15a53.dist-info/RECORD,,
9
+ omnata_plugin_runtime-0.3.16.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
10
+ omnata_plugin_runtime-0.3.16.dist-info/METADATA,sha256=BQKZNDtbeoTY8q7sb4z-RQC-hxzvOg8NYJX-0H16-NQ,1601
11
+ omnata_plugin_runtime-0.3.16.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
12
+ omnata_plugin_runtime-0.3.16.dist-info/RECORD,,