modelswrkpi 9.1.0__py3-none-any.whl → 9.2.2__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.

Potentially problematic release.


This version of modelswrkpi might be problematic. Click here for more details.

@@ -29,6 +29,8 @@ class LoadBalancerV3(LoadBalancerV2):
29
29
  iin_schema='bro_clicks',
30
30
 
31
31
  **kwargs):
32
+
33
+
32
34
  is_new_route = False
33
35
  if rewrite_route:
34
36
  is_new_route = LoadBalancerV3._route_schema != rewrite_route
@@ -59,7 +61,8 @@ class LoadBalancerV3(LoadBalancerV2):
59
61
  }
60
62
  self._join_on_del = False
61
63
  self.version = 3
62
- self.init_static(db_p, route_methods=route_methods, is_rewrite=is_new_route)
64
+ self._to_engine = self.db_p.engine.execution_options(postgresql_statement_timeout=2000)
65
+ self.init_static(db_p.engine.execution_options(postgresql_statement_timeout=160*60), route_methods=route_methods, is_rewrite=is_new_route)
63
66
 
64
67
  def __del__(self):
65
68
  self._joiner(self._t_get_bin)
@@ -355,9 +358,12 @@ class LoadBalancerV3(LoadBalancerV2):
355
358
  self._lock_model_replace.release()
356
359
  for k in r:
357
360
  _in = deepcopy(self.iin_info)
358
- self.iin_info.pop('response_code',None)
359
- getattr(self._model_class, k)(self.db_p).increment_conversion(approved, list(self.routes.columns),
361
+ self.iin_info.pop('response_code', None)
362
+ try:
363
+ getattr(self._model_class, k)(self._to_engine).increment_conversion(approved, list(self.routes.columns),
360
364
  **{**_in, **kwargs})
365
+ except:
366
+ print('increment error')
361
367
 
362
368
  def add_test_result(self, crm_id, order_id, approved, optimised, test=0, **kwargs):
363
369
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: modelswrkpi
3
- Version: 9.1.0
3
+ Version: 9.2.2
4
4
  Author: Kelly Kapowski
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: psycopg2
@@ -71,8 +71,8 @@ models/bro_clicks/load_balancer/v1.cpython-310-x86_64-linux-gnu.so,sha256=Eqst8z
71
71
  models/bro_clicks/load_balancer/v1.py,sha256=-vCW9oGwMi4jkcVyR6yi6UA5O0xP1Q7EfhKcpTvQUc4,11115
72
72
  models/bro_clicks/load_balancer/v2.cpython-310-x86_64-linux-gnu.so,sha256=VCGHr8KSipO2E0IfJ0zSpdte-xw_xsSK5vRWujtumnU,140368
73
73
  models/bro_clicks/load_balancer/v2.py,sha256=WSM6lKtyLrzx1xdhL3ncuH4QH-FBnS5Gm0uDFAtNHXo,7303
74
- models/bro_clicks/load_balancer/v3.cpython-310-x86_64-linux-gnu.so,sha256=f03MbM9KyuKpctvJ-6g6pnhMbnsasPtTkFVeQlRXUeA,256496
75
- models/bro_clicks/load_balancer/v3.py,sha256=-seP7t7dVO-O2q4I3wqgKrgTKxGPWVROHvSzVgwd_ug,16542
74
+ models/bro_clicks/load_balancer/v3.cpython-310-x86_64-linux-gnu.so,sha256=K8ZoW1pAI2jUbpvUTOmzcQSzTt8SlO0HuHiRbbeVvdI,256496
75
+ models/bro_clicks/load_balancer/v3.py,sha256=8MRWGDNTrA9FeXOP3oufFQcVbWdY76ptsdnD61Uy52E,16803
76
76
  models/bro_clicks/load_balancer/v4.cpython-310-x86_64-linux-gnu.so,sha256=kbQws2ObO2BxOOxjCaB7_H8IA1allHZ-zsX2kYMvrJo,136208
77
77
  models/bro_clicks/load_balancer/v4.py,sha256=wGe66SzYIa4qiPnA4ZZQ5tisvXv_j7XZZCVrsCG23Eg,7732
78
78
  models/bro_clicks/load_balancer/v5.cpython-310-x86_64-linux-gnu.so,sha256=gHA2J0wZsH9XdQSa13aQQELgOET9qCieiTB5RaJgztQ,127568
@@ -136,7 +136,7 @@ models/reports/table_reports/inactive_report.cpython-310-x86_64-linux-gnu.so,sha
136
136
  models/reports/table_reports/mtd_report.cpython-310-x86_64-linux-gnu.so,sha256=dHko7wWia9y9d-gIPC8uxycUnobII6hQgairSPRU168,74096
137
137
  models/vaultx/__init__.py,sha256=PwYMmWXQMojeyFnQuQW3wNlv9dLUmX_uiDfCOHJN7XI,46
138
138
  models/vaultx/ssc_cont.cpython-310-x86_64-linux-gnu.so,sha256=69kGuEko6oJEqxopS_4BxoX5S-Twq94eFwYJFEu_4B8,94992
139
- modelswrkpi-9.1.0.dist-info/METADATA,sha256=Q06H4MrzsFOGRBgFbNnGjoPoL3qU3Gj6J4fgMXTLwOA,346
140
- modelswrkpi-9.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
141
- modelswrkpi-9.1.0.dist-info/top_level.txt,sha256=fOgLNy4xnMfp0ihe_kFhY_yH71kNkdEQG68z8FoLR4g,19
142
- modelswrkpi-9.1.0.dist-info/RECORD,,
139
+ modelswrkpi-9.2.2.dist-info/METADATA,sha256=wR5siCDtqbIZa4duYh1qcjTAN9Hk726dM7W3M-K1IUo,346
140
+ modelswrkpi-9.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
141
+ modelswrkpi-9.2.2.dist-info/top_level.txt,sha256=fOgLNy4xnMfp0ihe_kFhY_yH71kNkdEQG68z8FoLR4g,19
142
+ modelswrkpi-9.2.2.dist-info/RECORD,,