omnata-plugin-runtime 0.3.24a70__tar.gz → 0.3.24a72__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.3.24a70
3
+ Version: 0.3.24a72
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.3.24-a70"
3
+ version = "0.3.24-a72"
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"
@@ -1823,6 +1823,7 @@ def managed_outbound_processing(concurrency: int, batch_size: int):
1823
1823
  def actual_decorator(method):
1824
1824
  @wraps(method)
1825
1825
  def _impl(self: OmnataPlugin, *method_args, **method_kwargs):
1826
+ logger.info(f"managed_outbound_processing invoked with {len(method_args)} positional arguments and {len(method_kwargs)} named arguments ({','.join(method_kwargs.keys())})")
1826
1827
  if self._sync_request is None: # pylint: disable=protected-access
1827
1828
  raise ValueError(
1828
1829
  "To use the managed_outbound_processing decorator, you must attach a sync request to the plugin instance (via the _sync_request property)"
@@ -1932,7 +1933,7 @@ def __managed_inbound_processing_worker(
1932
1933
  while not cancellation_token.is_set():
1933
1934
  # Get our generator object out of the queue
1934
1935
  logger.info(
1935
- f"worker {worker_index} processing. Cancelled: {cancellation_token.is_set()}"
1936
+ f"worker {worker_index} processing. Cancelled: {cancellation_token.is_set()}. Method args: {len(method_args)}. Method kwargs: {len(method_kwargs.keys())} ({','.join(method_kwargs.keys())})"
1936
1937
  )
1937
1938
  try:
1938
1939
  stream: StoredStreamConfiguration = streams_queue.get_nowait()
@@ -1991,7 +1992,7 @@ def managed_inbound_processing(concurrency: int):
1991
1992
  raise ValueError(
1992
1993
  "To use the managed_inbound_processing decorator, you must attach an apply request to the plugin instance (via the _sync_request property)"
1993
1994
  )
1994
-
1995
+ logger.info(f"managed_inbound_processing invoked with {len(method_args)} positional arguments and {len(method_kwargs)} named arguments ({','.join(method_kwargs.keys())})")
1995
1996
  if self._sync_request.development_mode is True:
1996
1997
  concurrency_to_use = 1 # disable concurrency when running in development mode, it interferes with pyvcr
1997
1998
  else: