wcp-library 1.4.5__py3-none-any.whl → 1.4.7__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.
@@ -23,7 +23,7 @@ def retry(f: callable) -> callable:
23
23
  while True:
24
24
  try:
25
25
  return f(self, *args, **kwargs)
26
- except (oracledb.OperationalError, psycopg.OperationalError) as e:
26
+ except (oracledb.OperationalError, oracledb.DatabaseError, psycopg.OperationalError) as e:
27
27
  error_obj, = e.args
28
28
  if error_obj.full_code in self.retry_error_codes and self._retry_count < self.retry_limit:
29
29
  self._retry_count += 1
@@ -50,7 +50,7 @@ def async_retry(f: callable) -> callable:
50
50
  while True:
51
51
  try:
52
52
  return await f(self, *args, **kwargs)
53
- except (oracledb.OperationalError, psycopg.OperationalError) as e:
53
+ except (oracledb.OperationalError, oracledb.DatabaseError, psycopg.OperationalError) as e:
54
54
  error_obj, = e.args
55
55
  if error_obj.full_code in self.retry_error_codes and self._retry_count < self.retry_limit:
56
56
  self._retry_count += 1
wcp_library/sql/oracle.py CHANGED
@@ -326,7 +326,7 @@ class AsyncOracleConnection(object):
326
326
 
327
327
  self._retry_count = 0
328
328
  self.retry_limit = 50
329
- self.retry_error_codes = ['ORA-01033', 'DPY-6005', 'DPY-4011']
329
+ self.retry_error_codes = ['ORA-01033', 'DPY-6005', 'DPY-4011', 'ORA-08103']
330
330
 
331
331
  @async_retry
332
332
  async def _connect(self) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: wcp-library
3
- Version: 1.4.5
3
+ Version: 1.4.7
4
4
  Summary: Common utilites for internal development at WCP
5
5
  Author: Mitch-Petersen
6
6
  Author-email: mitch.petersen@wcap.ca
@@ -14,10 +14,10 @@ wcp_library/ftp/sftp.py,sha256=hykXGLGdxe7DYAxFdTwjPjTEOYuIpSMyK3NOiTQNUK0,4176
14
14
  wcp_library/informatica.py,sha256=_g9lzSd-JLsY4e5_g6YcxQtOxP6fkg4sGfvNJaAN7jY,8123
15
15
  wcp_library/logging.py,sha256=e6gG7HFgUrMajUZs4Gs0atFfOJJmdmxN0GerfynNWlY,2061
16
16
  wcp_library/selenium_helper.py,sha256=w8YUC0pq7TkWiobc2ri4QR5fcHrrZgB5RAEfAdxZiuk,3780
17
- wcp_library/sql/__init__.py,sha256=TwbaOC-bPxJUM9XuT4sKq3erEvQ4IX_E2qNns_-ToFI,1932
18
- wcp_library/sql/oracle.py,sha256=RC3sXWx0LWQkoiCyAgEKjThmrJWeLQ1tm4KLCtuxivo,15802
17
+ wcp_library/sql/__init__.py,sha256=ocKH9-1HPDF5OhUKkpby3uNvQ6RBt2YD81nwwS90PgE,1980
18
+ wcp_library/sql/oracle.py,sha256=jcGoH2iGkgxW-RJV5FRf_CwNzilkxPN6_pJ27te5Qe0,15815
19
19
  wcp_library/sql/postgres.py,sha256=Kfj5kfNwLyhE6bZIcqj6tjpbiGSyAMErY_Kr9eGm-2Q,14814
20
20
  wcp_library/time.py,sha256=ktSzhK7SZnGPNXobFexnhFGQAcriLCJQKxnO0fed8fQ,1740
21
- wcp_library-1.4.5.dist-info/METADATA,sha256=jX3jMjTgZsE_YtzqpmfckBB7oK59ZekY3MS74AZrWQk,1497
22
- wcp_library-1.4.5.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
23
- wcp_library-1.4.5.dist-info/RECORD,,
21
+ wcp_library-1.4.7.dist-info/METADATA,sha256=RGM4LGpK-JwoauS4O45Cgi8yBM2Vehz_thSD46YvONY,1497
22
+ wcp_library-1.4.7.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
23
+ wcp_library-1.4.7.dist-info/RECORD,,