omnata-plugin-runtime 0.3.1__py3-none-any.whl → 0.3.3__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.
@@ -1683,9 +1683,16 @@ def __managed_inbound_processing_worker(
1683
1683
  # logging this to the omnata_plugin logger in this way,
1684
1684
  # will cause it to automatically fail the appropriate stream
1685
1685
  omnata_plugin_logger = getLogger("omnata_plugin")
1686
- omnata_plugin_logger.error(f"Error syncing stream {stream.stream_name}: {str(e)}",
1687
- exc_info=True,
1688
- extra={'stream_name':stream.stream_name})
1686
+ try:
1687
+ omnata_plugin_logger.error(f"Error syncing stream {stream.stream_name}: {str(e)}",
1688
+ exc_info=True,
1689
+ extra={'stream_name':stream.stream_name})
1690
+ except Exception as e2:
1691
+ # sometimes we get "Object of type MaxRetryError is not JSON serializable" or similar
1692
+ # so we need to handle that gracefully and just log it without the contents
1693
+ omnata_plugin_logger.error(f"{type(e).__name__} syncing stream {stream.stream_name}",
1694
+ exc_info=True,
1695
+ extra={'stream_name':stream.stream_name})
1689
1696
  except queue.Empty:
1690
1697
  logger.info("streams queue is empty")
1691
1698
  return
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.3.1
3
+ Version: 0.3.3
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
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3.10
12
12
  Requires-Dist: certifi (<=2023.11.17)
13
13
  Requires-Dist: charset-normalizer (<=2.0.4)
14
14
  Requires-Dist: idna (<=3.4)
15
- Requires-Dist: jinja2 (>=3,<=3.1.2)
15
+ Requires-Dist: jinja2 (>=3.1.2)
16
16
  Requires-Dist: markupsafe (<=2.1.3)
17
17
  Requires-Dist: numpy (<=1.26.3)
18
18
  Requires-Dist: packaging (<=23.1)
@@ -23,9 +23,9 @@ Requires-Dist: pyjwt (<=2.4.0)
23
23
  Requires-Dist: pyopenssl (<=23.2.0)
24
24
  Requires-Dist: pytz (<=2023.3.post1)
25
25
  Requires-Dist: requests (>=2,<=2.31.0)
26
- Requires-Dist: setuptools (<=68.2.2)
26
+ Requires-Dist: setuptools (>=68.2.2)
27
27
  Requires-Dist: snowflake-snowpark-python (>=1,<2)
28
- Requires-Dist: tomlkit (<=0.11.1)
28
+ Requires-Dist: tomlkit (>=0.11.1)
29
29
  Requires-Dist: urllib3 (<=2.1.0)
30
30
  Requires-Dist: wheel (<=0.41.2)
31
31
  Description-Content-Type: text/markdown
@@ -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=yqzFoAHbJ7zumfG27o9wVXTum0v1sYcYDxHPdYsjYLU,86572
6
+ omnata_plugin_runtime/omnata_plugin.py,sha256=L5NBkqyxK8hkwl6FBN5woR1r_rGcTPD74O0Tci72Cjk,87074
7
7
  omnata_plugin_runtime/plugin_entrypoints.py,sha256=4qpTzUrfL_gGMDYhGnEwHgCRUJII1yU2AB4WgCko_8Q,26650
8
8
  omnata_plugin_runtime/rate_limiting.py,sha256=se6MftQI5NrVHaLb1hByPCgAESPQhkAgIG7KIU1clDU,16562
9
- omnata_plugin_runtime-0.3.1.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
10
- omnata_plugin_runtime-0.3.1.dist-info/METADATA,sha256=4n8-0Crp_6hG-Pwi36DbS0Vfw5JLVOdqZGjmrb_yeSc,1604
11
- omnata_plugin_runtime-0.3.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
12
- omnata_plugin_runtime-0.3.1.dist-info/RECORD,,
9
+ omnata_plugin_runtime-0.3.3.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
10
+ omnata_plugin_runtime-0.3.3.dist-info/METADATA,sha256=cU2gPJnNqfKrXEaYDiEqsepmUXxZckbeohESx0DAJqQ,1600
11
+ omnata_plugin_runtime-0.3.3.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
12
+ omnata_plugin_runtime-0.3.3.dist-info/RECORD,,