omnata-plugin-runtime 0.2.85__py3-none-any.whl → 0.2.86__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.
@@ -1659,9 +1659,8 @@ def __managed_inbound_processing_worker(
1659
1659
  method_kwargs,
1660
1660
  ):
1661
1661
  """
1662
- A worker thread for the managed_outbound_processing annotation.
1663
- Consumes a fixed sized set of records by passing them to the wrapped function,
1664
- while adhering to the defined API constraints.
1662
+ A worker thread for the managed_inbound_processing annotation.
1663
+ Passes single streams at a time to the wrapped function, adhering to concurrency constraints.
1665
1664
  """
1666
1665
  while not cancellation_token.is_set():
1667
1666
  # Get our generator object out of the queue
@@ -1683,6 +1682,13 @@ def __managed_inbound_processing_worker(
1683
1682
  # If an inbound run is cancelled while waiting for rate limiting, this should mean that
1684
1683
  # the cancellation is handled elsewhere, so we don't need to do anything special here other than stop waiting
1685
1684
  return
1685
+ except Exception as e:
1686
+ # logging this to the omnata_plugin logger in this way,
1687
+ # will cause it to automatically fail the appropriate stream
1688
+ omnata_plugin_logger = getLogger("omnata_plugin")
1689
+ omnata_plugin_logger.error(f"Error syncing stream {stream.stream_name}: {e}",
1690
+ exc_info=True,
1691
+ extra={'stream_name':stream.stream_name})
1686
1692
  except queue.Empty:
1687
1693
  logger.info("streams queue is empty")
1688
1694
  return
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.2.85
3
+ Version: 0.2.86
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=SFS6d24rQIp64WZVeUlksZEaLe8ePnQHtc3utjhdiAg,
3
3
  omnata_plugin_runtime/configuration.py,sha256=v715ohTiPZh9THYy5YL1B9vnCuAkhq2bXqRdCOidbgY,32395
4
4
  omnata_plugin_runtime/forms.py,sha256=_KqSMQG749wImLKxPZh3B3doTZMbP5jDvF6BhQNkPCM,17375
5
5
  omnata_plugin_runtime/logging.py,sha256=Q6eSqrr3SzwfVAg4r4sV1dlxeNS_PzOtZfieoWUEOZQ,3232
6
- omnata_plugin_runtime/omnata_plugin.py,sha256=Nky4omtoxL0g_9SbsGC_StIOS14_Zpn9zje9budtUMQ,86352
6
+ omnata_plugin_runtime/omnata_plugin.py,sha256=zp3sOZN9EWvLygPPsnzZBF7HuSr-q3Gdb24tXDqf8gs,86777
7
7
  omnata_plugin_runtime/plugin_entrypoints.py,sha256=I07aWHYAttrvFuQuLPyoTBNbrYnKIe-VG2B1JqtjxS8,24406
8
8
  omnata_plugin_runtime/rate_limiting.py,sha256=se6MftQI5NrVHaLb1hByPCgAESPQhkAgIG7KIU1clDU,16562
9
- omnata_plugin_runtime-0.2.85.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
10
- omnata_plugin_runtime-0.2.85.dist-info/METADATA,sha256=iquZhyGhNtByU3NMWVlzwH1qZxw_jELXNsiAgRs2W4U,1086
11
- omnata_plugin_runtime-0.2.85.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
12
- omnata_plugin_runtime-0.2.85.dist-info/RECORD,,
9
+ omnata_plugin_runtime-0.2.86.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
10
+ omnata_plugin_runtime-0.2.86.dist-info/METADATA,sha256=9gzmX8JFdZCcH1IKHCq7owK2xf5lNp_iaQUp4DmTWqs,1086
11
+ omnata_plugin_runtime-0.2.86.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
12
+ omnata_plugin_runtime-0.2.86.dist-info/RECORD,,