omnata-plugin-runtime 0.11.0a309__tar.gz → 0.11.0a311__tar.gz
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-0.11.0a309 → omnata_plugin_runtime-0.11.0a311}/PKG-INFO +1 -1
- {omnata_plugin_runtime-0.11.0a309 → omnata_plugin_runtime-0.11.0a311}/pyproject.toml +1 -1
- {omnata_plugin_runtime-0.11.0a309 → omnata_plugin_runtime-0.11.0a311}/src/omnata_plugin_runtime/omnata_plugin.py +6 -3
- {omnata_plugin_runtime-0.11.0a309 → omnata_plugin_runtime-0.11.0a311}/LICENSE +0 -0
- {omnata_plugin_runtime-0.11.0a309 → omnata_plugin_runtime-0.11.0a311}/README.md +0 -0
- {omnata_plugin_runtime-0.11.0a309 → omnata_plugin_runtime-0.11.0a311}/src/omnata_plugin_runtime/__init__.py +0 -0
- {omnata_plugin_runtime-0.11.0a309 → omnata_plugin_runtime-0.11.0a311}/src/omnata_plugin_runtime/api.py +0 -0
- {omnata_plugin_runtime-0.11.0a309 → omnata_plugin_runtime-0.11.0a311}/src/omnata_plugin_runtime/configuration.py +0 -0
- {omnata_plugin_runtime-0.11.0a309 → omnata_plugin_runtime-0.11.0a311}/src/omnata_plugin_runtime/forms.py +0 -0
- {omnata_plugin_runtime-0.11.0a309 → omnata_plugin_runtime-0.11.0a311}/src/omnata_plugin_runtime/json_schema.py +0 -0
- {omnata_plugin_runtime-0.11.0a309 → omnata_plugin_runtime-0.11.0a311}/src/omnata_plugin_runtime/logging.py +0 -0
- {omnata_plugin_runtime-0.11.0a309 → omnata_plugin_runtime-0.11.0a311}/src/omnata_plugin_runtime/plugin_entrypoints.py +0 -0
- {omnata_plugin_runtime-0.11.0a309 → omnata_plugin_runtime-0.11.0a311}/src/omnata_plugin_runtime/rate_limiting.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "omnata-plugin-runtime"
|
3
|
-
version = "0.11.0-
|
3
|
+
version = "0.11.0-a311"
|
4
4
|
description = "Classes and common runtime components for building and running Omnata Plugins"
|
5
5
|
authors = ["James Weakley <james.weakley@omnata.com>"]
|
6
6
|
readme = "README.md"
|
@@ -1209,7 +1209,10 @@ class InboundSyncRequest(SyncRequest):
|
|
1209
1209
|
new_progress_update = PluginMessageStreamProgressUpdate(
|
1210
1210
|
stream_total_counts=self._stream_record_counts,
|
1211
1211
|
# records could have been marked as completed, but still have results to apply
|
1212
|
-
completed_streams=[s for s in self._completed_streams
|
1212
|
+
completed_streams=[s for s in self._completed_streams
|
1213
|
+
if s not in self._apply_results
|
1214
|
+
or self._apply_results[s] is None
|
1215
|
+
or len(self._apply_results[s]) == 0],
|
1213
1216
|
stream_errors=self._omnata_log_handler.stream_global_errors,
|
1214
1217
|
total_records_estimate=self._total_records_estimate
|
1215
1218
|
)
|
@@ -1294,7 +1297,7 @@ class InboundSyncRequest(SyncRequest):
|
|
1294
1297
|
# if the total exceeds 200MB, we apply the results immediately
|
1295
1298
|
all_df_lists:List[List[pandas.DataFrame]] = list(self._apply_results.values())
|
1296
1299
|
# flatten
|
1297
|
-
all_dfs:List[pandas.DataFrame] = [x for sublist in all_df_lists for x in sublist]
|
1300
|
+
all_dfs:List[pandas.DataFrame] = [x for sublist in all_df_lists for x in sublist if isinstance(x, pandas.DataFrame)]
|
1298
1301
|
combined_length = sum([len(x) for x in all_dfs])
|
1299
1302
|
# first, don't bother if the count is less than 10000, since it's unlikely to be even close
|
1300
1303
|
if combined_length > 10000:
|
@@ -1344,7 +1347,7 @@ class InboundSyncRequest(SyncRequest):
|
|
1344
1347
|
combined_length = sum([len(x) for x in all_dfs])
|
1345
1348
|
# first, don't both if the count is less than 10000, since it's unlikely to be even close
|
1346
1349
|
if combined_length > 10000:
|
1347
|
-
if sum([x.memory_usage(index=True).sum() for x in all_dfs]) > 200000000:
|
1350
|
+
if sum([x.memory_usage(index=True).sum() for x in all_dfs if isinstance(x, pandas.DataFrame)]) > 200000000:
|
1348
1351
|
logger.debug(f"Applying criteria deletes queue immediately due to combined dataframe size")
|
1349
1352
|
self.apply_results_queue()
|
1350
1353
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|