omnata-plugin-runtime 0.2.78__py3-none-any.whl → 0.2.80__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.
- omnata_plugin_runtime/omnata_plugin.py +8 -3
- {omnata_plugin_runtime-0.2.78.dist-info → omnata_plugin_runtime-0.2.80.dist-info}/METADATA +1 -1
- {omnata_plugin_runtime-0.2.78.dist-info → omnata_plugin_runtime-0.2.80.dist-info}/RECORD +5 -5
- {omnata_plugin_runtime-0.2.78.dist-info → omnata_plugin_runtime-0.2.80.dist-info}/LICENSE +0 -0
- {omnata_plugin_runtime-0.2.78.dist-info → omnata_plugin_runtime-0.2.80.dist-info}/WHEEL +0 -0
@@ -1702,13 +1702,18 @@ def managed_inbound_processing(concurrency: int):
|
|
1702
1702
|
|
1703
1703
|
def actual_decorator(method):
|
1704
1704
|
@wraps(method)
|
1705
|
-
def _impl(self, *method_args, **method_kwargs):
|
1705
|
+
def _impl(self:OmnataPlugin, *method_args, **method_kwargs):
|
1706
1706
|
logger.info(f"method_args: {method_args}")
|
1707
1707
|
logger.info(f"method_kwargs: {method_kwargs}")
|
1708
1708
|
if self._sync_request is None:
|
1709
1709
|
raise ValueError(
|
1710
1710
|
"To use the managed_inbound_processing decorator, you must attach an apply request to the plugin instance (via the _sync_request property)"
|
1711
1711
|
)
|
1712
|
+
|
1713
|
+
if self._sync_request.development_mode is True:
|
1714
|
+
concurrency_to_use = 1 # disable concurrency when running in development mode, it interferes with pyvcr
|
1715
|
+
else:
|
1716
|
+
concurrency_to_use = concurrency
|
1712
1717
|
# if self._sync_request.api_limits is None:
|
1713
1718
|
# raise ValueError('To use the managed_inbound_processing decorator, API constraints must be defined. These can be provided in the response to the connect method')
|
1714
1719
|
if len(method_args) == 0:
|
@@ -1731,9 +1736,9 @@ def managed_inbound_processing(concurrency: int):
|
|
1731
1736
|
streams_queue.put(stream)
|
1732
1737
|
|
1733
1738
|
tasks = []
|
1734
|
-
logger.info(f"Creating {
|
1739
|
+
logger.info(f"Creating {concurrency_to_use} worker(s) for retrieving records")
|
1735
1740
|
|
1736
|
-
for i in range(
|
1741
|
+
for i in range(concurrency_to_use):
|
1737
1742
|
# the dataframe/generator was put on the queue, so we remove it from the method args
|
1738
1743
|
task = threading.Thread(
|
1739
1744
|
target=__managed_inbound_processing_worker,
|
@@ -3,10 +3,10 @@ omnata_plugin_runtime/api.py,sha256=vKq7goVPX5cPQ9CVN9l8RmpJDcqDwS5y9v1IWhWjBbk,
|
|
3
3
|
omnata_plugin_runtime/configuration.py,sha256=NICse7qMtReIYY4ZCu8ng4QDJ4rFP0g3mZwc8m1Xl54,32247
|
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=
|
6
|
+
omnata_plugin_runtime/omnata_plugin.py,sha256=eshPKK9I4o1kVKXIJoihwNuje-uOnDXA7x5UlzVv_i8,86096
|
7
7
|
omnata_plugin_runtime/plugin_entrypoints.py,sha256=dV_JOEWffdkAkofFYJMAsM_-gE9OpM2-paI2dsh5Rzo,24352
|
8
8
|
omnata_plugin_runtime/rate_limiting.py,sha256=QO8VB1H8al6a8-ydohUmL0c5JynXG2bulmuPRs2-2-Y,14910
|
9
|
-
omnata_plugin_runtime-0.2.
|
10
|
-
omnata_plugin_runtime-0.2.
|
11
|
-
omnata_plugin_runtime-0.2.
|
12
|
-
omnata_plugin_runtime-0.2.
|
9
|
+
omnata_plugin_runtime-0.2.80.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
|
10
|
+
omnata_plugin_runtime-0.2.80.dist-info/METADATA,sha256=D765jJJBMwsdpVrEd87ohxQ-RXfBB32UejdAShXBWmo,1086
|
11
|
+
omnata_plugin_runtime-0.2.80.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
12
|
+
omnata_plugin_runtime-0.2.80.dist-info/RECORD,,
|
File without changes
|
File without changes
|