arpakitlib 1.6.98__py3-none-any.whl → 1.7.0__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.
@@ -56,29 +56,14 @@ class BaseWorker(ABC):
56
56
  self._logger.exception(exception)
57
57
 
58
58
  def sync_safe_run(self):
59
- self._logger.info(f"start sync_safe_run")
60
-
61
- self._logger.info("start sync_on_startup ")
62
59
  self.sync_on_startup()
63
- self._logger.info("finish sync_on_startup")
64
-
65
60
  while True:
66
-
67
61
  try:
68
-
69
- self._logger.info("start sync_run")
70
62
  self.sync_run()
71
- self._logger.info("finish sync_run")
72
-
73
63
  if self.timeout_after_run is not None:
74
64
  sync_safe_sleep(self.timeout_after_run)
75
-
76
65
  except BaseException as exception:
77
-
78
- self._logger.info("start sync_run_on_error")
79
66
  self.sync_run_on_error(exception=exception)
80
- self._logger.info("start sync_run_on_error")
81
-
82
67
  if self.timeout_after_err_in_run is not None:
83
68
  sync_safe_sleep(self.timeout_after_err_in_run)
84
69
 
@@ -92,27 +77,14 @@ class BaseWorker(ABC):
92
77
  self._logger.exception(exception)
93
78
 
94
79
  async def async_safe_run(self):
95
- self._logger.info(f"start async_safe_run")
96
-
97
- self._logger.info("start async_on_startup")
98
80
  await self.async_on_startup()
99
- self._logger.info("start async_on_startup")
100
-
101
81
  while True:
102
-
103
82
  try:
104
-
105
83
  await self.async_run()
106
-
107
84
  if self.timeout_after_run is not None:
108
85
  await async_safe_sleep(self.timeout_after_run)
109
-
110
86
  except BaseException as exception:
111
-
112
- self._logger.info("start async_run_on_error")
113
87
  await self.async_run_on_error(exception=exception)
114
- self._logger.info("finish async_run_on_error")
115
-
116
88
  if self.timeout_after_err_in_run is not None:
117
89
  await async_safe_sleep(self.timeout_after_err_in_run)
118
90
 
@@ -53,7 +53,6 @@ def sync_make_http_request(
53
53
 
54
54
  while True:
55
55
  tries_counter += 1
56
- _logger.info(f"{method} {url} {kwargs.get('params')}")
57
56
  try:
58
57
  response = requests.request(**kwargs)
59
58
  if raise_for_status_:
@@ -98,7 +97,6 @@ async def async_make_http_request(
98
97
 
99
98
  while True:
100
99
  tries_counter += 1
101
- _logger.info(f"{method} {url} {kwargs.get('params')}")
102
100
  try:
103
101
  async with aiohttp.ClientSession(connector=proxy_connector) as session:
104
102
  async with session.request(**kwargs) as response:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arpakitlib
3
- Version: 1.6.98
3
+ Version: 1.7.0
4
4
  Summary: arpakitlib
5
5
  Home-page: https://github.com/ARPAKIT-Company/arpakitlib
6
6
  License: Apache-2.0
@@ -71,7 +71,7 @@ arpakitlib/ar_arpakit_lib_module_util.py,sha256=V_mc3Ml73Tzz3arxmwEfIxruKMyrwbe8
71
71
  arpakitlib/ar_arpakit_schedule_uust_api_client_util.py,sha256=SYWWQDohPnw0qpBIu2hEvGZRVdaI4NUUQdEjnMnseo4,18237
72
72
  arpakitlib/ar_arpakitlib_cli.py,sha256=T-YGAL6hRdrT2x3ug33N3GrWLYKSjK25r9SlaiBT7-M,2366
73
73
  arpakitlib/ar_base64_util.py,sha256=aZkg2cZTuAaP2IWeG_LXJ6RO7qhyskVwec-Lks0iM-k,676
74
- arpakitlib/ar_base_worker_util.py,sha256=YGoSpkE52QGu_mQdrefThc-pCnhhLEhWchSM3HZL-2U,3972
74
+ arpakitlib/ar_base_worker_util.py,sha256=fW7kzbo7gKFaF7-l7DnOGTVkt4H_BeHSkTHSoGQR8Fw,3295
75
75
  arpakitlib/ar_cache_file_util.py,sha256=Fo2pH-Zqm966KWFBHG_pbiySGZvhIFCYqy7k1weRfJ0,3476
76
76
  arpakitlib/ar_datetime_util.py,sha256=Xe1NiT9oPQzNSG7RVRkhukhbg4i-hhS5ImmV7sPUc8o,971
77
77
  arpakitlib/ar_dict_util.py,sha256=cF5LQJ6tLqyGoEXfDljMDZrikeZoWPw7CgINHIFGvXM,419
@@ -102,7 +102,7 @@ arpakitlib/ar_file_storage_in_dir_util.py,sha256=D3e3rGuHoI6xqAA5mVvEpVVpOWY1jyj
102
102
  arpakitlib/ar_file_util.py,sha256=XiwmeycxoLqtYnGOu5q6IEaJJXilZvtLvsKDKtwqSLY,137
103
103
  arpakitlib/ar_hash_util.py,sha256=Iqy6KBAOLBQMFLWv676boI5sV7atT2B-fb7aCdHOmIQ,340
104
104
  arpakitlib/ar_hello_world.py,sha256=5B3GTgxGIFh_s6ttyB4UKn78ncyA_8blRnDT04l-ELg,158
105
- arpakitlib/ar_http_request_util.py,sha256=aWUIfAvoRwf-2WCg6GoD7Bojj2By1j1unBGRBtShkKQ,3781
105
+ arpakitlib/ar_http_request_util.py,sha256=T-wAV-0-j-th9E1kyd1cPD2LYxGY44uWCcJVx3p2AMo,3655
106
106
  arpakitlib/ar_ip_util.py,sha256=aEAa1Hvobh9DWX7cmBAPLqnXSTiKe2hRk-WJaiKMaI8,1009
107
107
  arpakitlib/ar_json_db_util.py,sha256=CEyhIU4WuNmX5mqwBVYxUKSdpFelXvWmf_tJ1fuxMSE,7187
108
108
  arpakitlib/ar_json_util.py,sha256=GwHDdrBWiJBHSc07Qe0aN1Gp_uM0pYpTwzU9JAgsKAo,972
@@ -128,9 +128,9 @@ arpakitlib/ar_str_util.py,sha256=AhcdrEm-pXRilCaDWCdTfVkQSy0SnbE52ur43Ltr6cI,212
128
128
  arpakitlib/ar_type_util.py,sha256=5nDnXL5Oyozlg8XvxMrogsoYiG8_atItg46A0mtv-pk,2025
129
129
  arpakitlib/ar_yookassa_api_client_util.py,sha256=sh4fcUkAkdOetFn9JYoTvjcSXP-M1wU04KEY-ECLfLg,5137
130
130
  arpakitlib/ar_zabbix_api_client_util.py,sha256=Q-VR4MvoZ9aHwZeYZr9G3LwN-ANx1T5KFmF6pvPM-9M,6402
131
- arpakitlib-1.6.98.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
132
- arpakitlib-1.6.98.dist-info/METADATA,sha256=GwXLvZXU0vILUsRVy0NvPRX-zV7mY2NMjlswiUBHk8M,2739
133
- arpakitlib-1.6.98.dist-info/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
134
- arpakitlib-1.6.98.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
135
- arpakitlib-1.6.98.dist-info/entry_points.txt,sha256=VHkTDXDOMrgcNzGfKhEhoOIIz6T8Kkt46hy95Zc1iL0,74
136
- arpakitlib-1.6.98.dist-info/RECORD,,
131
+ arpakitlib-1.7.0.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
132
+ arpakitlib-1.7.0.dist-info/METADATA,sha256=GTLEFV615Z-G1Ch0hvqZCjwDv_npBF1_mBdd4dNvnmc,2738
133
+ arpakitlib-1.7.0.dist-info/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
134
+ arpakitlib-1.7.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
135
+ arpakitlib-1.7.0.dist-info/entry_points.txt,sha256=VHkTDXDOMrgcNzGfKhEhoOIIz6T8Kkt46hy95Zc1iL0,74
136
+ arpakitlib-1.7.0.dist-info/RECORD,,