omnata-plugin-runtime 0.10.19__py3-none-any.whl → 0.10.20__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.
@@ -335,6 +335,7 @@ class SyncRequest(ABC):
335
335
  self._cancel_checking_task = None
336
336
  self._rate_limit_update_task = None
337
337
  self._last_stream_progress_update = None
338
+ self._last_states_update = None
338
339
  # store the opentelemetry context so that it can be attached inside threads
339
340
  self.opentelemetry_context = context.get_current()
340
341
 
@@ -477,7 +478,7 @@ class SyncRequest(ABC):
477
478
  """
478
479
  # prune the history first. Strictly speaking, we should not prune here since there could be other syncs with longer
479
480
  # rate limiting windows than this one, but it's fairly unlikely users would override defaults to that extent
480
- if self.rate_limit_state_this_sync_and_branch is not None:
481
+ if self.rate_limit_state_this_sync_and_branch is not None and len(self.rate_limit_state_this_sync_and_branch) > 0:
481
482
  for endpoint_category in self.rate_limit_state_this_sync_and_branch:
482
483
  api_limits_for_category = [x for x in self.api_limits if x.endpoint_category == endpoint_category]
483
484
  if len(api_limits_for_category) > 0:
@@ -1530,7 +1531,10 @@ class InboundSyncRequest(SyncRequest):
1530
1531
  Updates the SYNC table to have the latest stream states.
1531
1532
  TODO: This should be done in concert with the results, revisit
1532
1533
  """
1533
- self._plugin_message(PluginMessageStreamState(stream_state=self._latest_states))
1534
+ if self._last_states_update is None or self._latest_states != self._last_states_update:
1535
+ self._plugin_message(PluginMessageStreamState(stream_state=self._latest_states))
1536
+ self._last_states_update = self._latest_states
1537
+
1534
1538
 
1535
1539
  def _apply_criteria_deletes_dataframe(self, results_df: pandas.DataFrame):
1536
1540
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.10.19
3
+ Version: 0.10.20
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
@@ -4,10 +4,10 @@ omnata_plugin_runtime/configuration.py,sha256=0rfIGv8rCu8OwL7m-VOXIBjd05iyaBWRdt
4
4
  omnata_plugin_runtime/forms.py,sha256=Lrbr3otsFDrvHWJw7v-slsW4PvEHJ6BG1Yl8oaJfiDo,20529
5
5
  omnata_plugin_runtime/json_schema.py,sha256=rqpJ5wjZiaE6shFB6Rv5CRHIl8xGxntibNjlh4A6Zr0,45902
6
6
  omnata_plugin_runtime/logging.py,sha256=WBuZt8lF9E5oFWM4KYQbE8dDJ_HctJ1pN3BHwU6rcd0,4461
7
- omnata_plugin_runtime/omnata_plugin.py,sha256=M0b6f9lKKEoEI0zf-ZwZcIPKPQTmHTIMhvcrBc94Mhg,133278
7
+ omnata_plugin_runtime/omnata_plugin.py,sha256=hssSfMkdwnZjkeMu7rsOtsHgF8-UzA69QdzMq6KqE6k,133542
8
8
  omnata_plugin_runtime/plugin_entrypoints.py,sha256=iqGl8_nEEnPGKg3Aem4YLSQ6d5xS3ju5gq8MJbx6sCA,31968
9
9
  omnata_plugin_runtime/rate_limiting.py,sha256=qpr5esU4Ks8hMzuMpSR3gLFdor2ZUXYWCjmsQH_K6lQ,25882
10
- omnata_plugin_runtime-0.10.19.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
11
- omnata_plugin_runtime-0.10.19.dist-info/METADATA,sha256=kR3hCDVS4GanyWmh8NTqwq09TIxbBeSG8-M-97x2q_U,2208
12
- omnata_plugin_runtime-0.10.19.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
13
- omnata_plugin_runtime-0.10.19.dist-info/RECORD,,
10
+ omnata_plugin_runtime-0.10.20.dist-info/LICENSE,sha256=rGaMQG3R3F5-JGDp_-rlMKpDIkg5n0SI4kctTk8eZSI,56
11
+ omnata_plugin_runtime-0.10.20.dist-info/METADATA,sha256=hoQ31sSHgQVaTavcaBOlT8WvL6wiBte0GSo82KraIzg,2208
12
+ omnata_plugin_runtime-0.10.20.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
13
+ omnata_plugin_runtime-0.10.20.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.2
2
+ Generator: poetry-core 2.1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any