omnata-plugin-runtime 0.4.1__tar.gz → 0.4.1a93__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.4.1
3
+ Version: 0.4.1a93
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.4.1"
3
+ version = "0.4.1-a93"
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"
@@ -875,6 +875,13 @@ class InboundSyncRequest(SyncRequest):
875
875
  :param bool test_replay_mode: When enabled, it is safe to assume that HTTP requests are hitting a re-recorded log, so there is no need to wait in between polling
876
876
  :return: nothing
877
877
  """
878
+ self.streams = streams
879
+ self._streams_dict: Dict[str, StoredStreamConfiguration] = {
880
+ s.stream_name: s for s in streams
881
+ }
882
+ self._stream_record_counts: Dict[str, int] = {
883
+ stream_name: 0 for stream_name in self._streams_dict.keys()
884
+ }
878
885
  SyncRequest.__init__(
879
886
  self,
880
887
  run_id=run_id,
@@ -890,10 +897,6 @@ class InboundSyncRequest(SyncRequest):
890
897
  development_mode=development_mode,
891
898
  test_replay_mode=test_replay_mode
892
899
  )
893
- self.streams = streams
894
- self._streams_dict: Dict[str, StoredStreamConfiguration] = {
895
- s.stream_name: s for s in streams
896
- }
897
900
  self._apply_results: Dict[str, List[pandas.DataFrame]] = {}
898
901
  # named by convention, see SyncRunProcessor.enqueue
899
902
  self._criteria_deletes_table_name = (
@@ -907,9 +910,6 @@ class InboundSyncRequest(SyncRequest):
907
910
  self._results_exist: Dict[
908
911
  str, bool
909
912
  ] = {} # track whether or not results exist for stream
910
- self._stream_record_counts: Dict[str, int] = {
911
- stream_name: 0 for stream_name in self._streams_dict.keys()
912
- }
913
913
  self._total_records_estimate: Optional[Dict[str,int]] = {}
914
914
  self._stream_change_counts: Dict[str, int] = {
915
915
  stream_name: 0 for stream_name in self._streams_dict.keys()