berryworld 1.0.0.199342__py3-none-any.whl → 1.0.0.199373__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.
- berryworld/python_logs.py +2 -12
- {berryworld-1.0.0.199342.dist-info → berryworld-1.0.0.199373.dist-info}/METADATA +1 -1
- {berryworld-1.0.0.199342.dist-info → berryworld-1.0.0.199373.dist-info}/RECORD +6 -6
- {berryworld-1.0.0.199342.dist-info → berryworld-1.0.0.199373.dist-info}/WHEEL +0 -0
- {berryworld-1.0.0.199342.dist-info → berryworld-1.0.0.199373.dist-info}/licenses/LICENSE +0 -0
- {berryworld-1.0.0.199342.dist-info → berryworld-1.0.0.199373.dist-info}/top_level.txt +0 -0
berryworld/python_logs.py
CHANGED
|
@@ -57,10 +57,8 @@ class ErrorLogs:
|
|
|
57
57
|
successful_columns = {'Successful': 1, 'Resolved': 1, 'Pipeline': self.pipeline, 'GuidKey': self.guid,
|
|
58
58
|
'FinishedDate': datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")}
|
|
59
59
|
self.log_df = self.log_df.assign(**successful_columns)
|
|
60
|
-
self.sql_con.insert(self.log_df, 'Staging', 'Logs', print_sql=self.print_sql)
|
|
61
60
|
self.completed = True
|
|
62
|
-
|
|
63
|
-
Thread(target=self.trigger_merge_stored_procedure).start()
|
|
61
|
+
self.sql_con.insert(self.log_df, 'Staging', 'Logs', print_sql=self.print_sql)
|
|
64
62
|
|
|
65
63
|
def on_failure(self, error_message, pipeline=None, section=None, critical=True, proposed_solution=None):
|
|
66
64
|
""" Update log on failure
|
|
@@ -79,18 +77,10 @@ class ErrorLogs:
|
|
|
79
77
|
self.log_df = self.log_df.assign(**unsuccessful_columns)
|
|
80
78
|
if proposed_solution is not None:
|
|
81
79
|
self.log_df = self.log_df.assign(**{'ProposedSolution': proposed_solution})
|
|
82
|
-
self.sql_con.insert(self.log_df, 'Staging', 'Logs', print_sql=self.print_sql)
|
|
83
80
|
self.completed = True
|
|
81
|
+
self.sql_con.insert(self.log_df, 'Staging', 'Logs', print_sql=self.print_sql)
|
|
84
82
|
self.failure_type.append(self.completed)
|
|
85
83
|
|
|
86
|
-
Thread(target=self.trigger_merge_stored_procedure).start()
|
|
87
|
-
|
|
88
|
-
def trigger_merge_stored_procedure(self):
|
|
89
|
-
""" Trigger the merge stored procedure to aggregate logs
|
|
90
|
-
"""
|
|
91
|
-
stored_procedure = 'Logging.spLogsMerge'
|
|
92
|
-
self.sql_con.run_statement(f"EXEC {stored_procedure}")
|
|
93
|
-
|
|
94
84
|
@staticmethod
|
|
95
85
|
def register_failure(email_log, section, error_, solutions=None, pipeline=None):
|
|
96
86
|
"""Register a failure in the email log
|
|
@@ -16,7 +16,7 @@ berryworld/microsoft_teams.py,sha256=8uPo0yku-euBj2VdzBoZCeX3IcsCCOqISLqaVZUVxfA
|
|
|
16
16
|
berryworld/persistent_storage.py,sha256=L15kLyzN42T6UB1WAg8rFXJq3Mdb1M8Sw4P5YQaUN84,8711
|
|
17
17
|
berryworld/pickle_management.py,sha256=5o6UuXBpTj23Jgpz6sj9V-vdcdWBK1xMEckWxT-Whj4,2436
|
|
18
18
|
berryworld/power_automate.py,sha256=V86QEGG9H36DrDvod9Q6yp8OUu307hfYcXJhw06pYrA,27912
|
|
19
|
-
berryworld/python_logs.py,sha256=
|
|
19
|
+
berryworld/python_logs.py,sha256=FVPK1rtFvwRRxtDnBVc9SinyAkt6K2G1HIzIvtS7WWE,5173
|
|
20
20
|
berryworld/sharepoint_con.py,sha256=nmyZJIcaAKJ6Y-ti4gQbvzA_rRbrMGIxTDXe4eP-tiI,44950
|
|
21
21
|
berryworld/snowflake_conn.py,sha256=L0ePgTKa3tvaxj88BZmsjS6cFp3ZU3rytw7S2jkuA-U,3161
|
|
22
22
|
berryworld/sql_conn.py,sha256=6kUR3oLXweakz2IBc4zI1ZMqRoN8K6nbQneHhenM-7I,47668
|
|
@@ -27,12 +27,12 @@ berryworld/verify_keys.py,sha256=X7VUHqYDklWPDO0bGVHIOXeLq5Qi4fZRZbHYw5x7UnA,435
|
|
|
27
27
|
berryworld/vivantio.py,sha256=QfZo0UKqkzVRg_LyiwivNd3aEup4TH57x4KxLZkCJwc,10627
|
|
28
28
|
berryworld/vivantio_logging.py,sha256=ciy7gA4u3FrgUIpEBnMgocbNPp6jcu9TPoy-kLcrTZU,5736
|
|
29
29
|
berryworld/xml_parser.py,sha256=HWD71NaTN3DaIOGT6Wzxs4CEsroFhGQwe9iPLIL80Co,957
|
|
30
|
-
berryworld-1.0.0.
|
|
30
|
+
berryworld-1.0.0.199373.dist-info/licenses/LICENSE,sha256=vtkVCJM6E2af2gnsi2XxKPr4WY-uIbvzVLXieFND0UU,1074
|
|
31
31
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
32
|
tests/test_allocation_config.py,sha256=e12l6fE9U57eSPS35g6ekJ_hol7-RHg89JV60_m1BlE,4633
|
|
33
33
|
tests/test_handy_mix_config.py,sha256=Un56mz9KJmdn4K4OwzHAHLSRzDU1Xv2nFrONNuzOG04,2594
|
|
34
34
|
tests/test_xml_parser.py,sha256=3QTlhFEd6KbK6nRFKZnc35tad6wqukTbe4QrFi8mr_8,859
|
|
35
|
-
berryworld-1.0.0.
|
|
36
|
-
berryworld-1.0.0.
|
|
37
|
-
berryworld-1.0.0.
|
|
38
|
-
berryworld-1.0.0.
|
|
35
|
+
berryworld-1.0.0.199373.dist-info/METADATA,sha256=qwpYYA_x5BmX0fwgUN-8FnPPfdXREqeUm5Rpg5LCxn8,1445
|
|
36
|
+
berryworld-1.0.0.199373.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
37
|
+
berryworld-1.0.0.199373.dist-info/top_level.txt,sha256=GIZ5qy-P5oxfEH755vA1IMFeTVdX3-40JxMe6nOe5I8,17
|
|
38
|
+
berryworld-1.0.0.199373.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|