omnata-plugin-runtime 0.11.0a303__tar.gz → 0.11.0a304__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.11.0a303
3
+ Version: 0.11.0a304
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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "omnata-plugin-runtime"
3
- version = "0.11.0-a303"
3
+ version = "0.11.0-a304"
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"
@@ -282,6 +282,11 @@ class PluginEntrypoint:
282
282
  # token is set. We throw it here as an error since that's currently how it flows back to the engine with a DELAYED state
283
283
  raise DeadlineReachedException()
284
284
  finally:
285
+ # try to upload any remaining results
286
+ try:
287
+ inbound_sync_request.apply_results_queue()
288
+ except Exception as e:
289
+ logger.warning(f"Error uploading remaining results: {str(e)}", exc_info=True)
285
290
  # cancel the thread so we don't leave anything hanging around and cop a nasty error
286
291
  try:
287
292
  inbound_sync_request._thread_cancellation_token.set() # pylint: disable=protected-access