sibi-dst 0.3.57__py3-none-any.whl → 0.3.58__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.
@@ -169,13 +169,13 @@ class ArtifactUpdaterMultiWrapper:
169
169
  self.failed.add(artifact)
170
170
  self.logger.error(f"✖️ Permanently failed {artifact.__class__.__name__}")
171
171
 
172
- async def worker(self, queue, worker_id):
172
+ async def worker(self, queue, worker_id, **kwargs):
173
173
  while True:
174
174
  try:
175
175
  item = await queue.get()
176
176
  art = item.artifact
177
177
  self.worker_heartbeat[worker_id] = time.time()
178
- await self.async_update_artifact(art)
178
+ await self.async_update_artifact(art, **kwargs)
179
179
  except asyncio.CancelledError:
180
180
  self.logger.info(f"Worker {worker_id} stopped")
181
181
  break
@@ -193,7 +193,7 @@ class ArtifactUpdaterMultiWrapper:
193
193
  artifacts = self.get_artifacts(data_type)
194
194
  queue = self.prioritize_tasks(artifacts)
195
195
  init = self.calculate_initial_workers(len(artifacts))
196
- tasks = [asyncio.create_task(self.worker(queue, i)) for i in range(init)]
196
+ tasks = [asyncio.create_task(self.worker(queue, i, **kwargs)) for i in range(init)]
197
197
  monitor = asyncio.create_task(self.resource_monitor(queue, tasks))
198
198
  await queue.join()
199
199
  monitor.cancel()
@@ -138,8 +138,8 @@ class DfHelper:
138
138
  Additional parameters for specific backend types are extracted here.
139
139
  :return: None
140
140
  """
141
- self.logger.debug(f"backend used: {self.backend}")
142
- self.logger.debug(f"kwargs passed to backend plugins: {kwargs}")
141
+ # self.logger.debug(f"backend used: {self.backend}")
142
+ # self.logger.debug(f"kwargs passed to backend plugins: {kwargs}")
143
143
  self._backend_query = self.__get_config(QueryConfig, kwargs)
144
144
  self._backend_params = self.__get_config(ParamsConfig, kwargs)
145
145
  if self.backend == 'django_db':
@@ -166,7 +166,7 @@ class DfHelper:
166
166
  recognized_keys = set(model.__annotations__.keys())
167
167
  self.logger.debug(f"recognized keys: {recognized_keys}")
168
168
  model_kwargs = {k: kwargs.pop(k) for k in list(kwargs.keys()) if k in recognized_keys}
169
- self.logger.debug(f"model_kwargs: {model_kwargs}")
169
+ # self.logger.debug(f"model_kwargs: {model_kwargs}")
170
170
  return model(**model_kwargs)
171
171
 
172
172
  def load_parallel(self, **options):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sibi-dst
3
- Version: 0.3.57
3
+ Version: 0.3.58
4
4
  Summary: Data Science Toolkit
5
5
  Author: Luis Valverde
6
6
  Author-email: lvalverdeb@gmail.com
@@ -1,7 +1,7 @@
1
1
  sibi_dst/__init__.py,sha256=3pbriM7Ym5f9gew7n9cO4G_p9n-0bnxdmQ0hwBdJjr4,253
2
2
  sibi_dst/df_helper/__init__.py,sha256=McYrw2N0MsMgtawLrONXTGdyHfQWVOBUvIDbklfjb54,342
3
- sibi_dst/df_helper/_artifact_updater_multi_wrapper.py,sha256=f0yz5L1WE2a_N5Kkjr06ZwyJktdXy9xBLMDWJXQAaOI,10145
4
- sibi_dst/df_helper/_df_helper.py,sha256=Th5IakQjF22dfxDF5mC7DJOQm1ZAxM09AMW9uDH83oc,30962
3
+ sibi_dst/df_helper/_artifact_updater_multi_wrapper.py,sha256=2iQ4bQLCPKnqfKMwmttJFLdNon0bc8Lz7UfDcVRG8pQ,10175
4
+ sibi_dst/df_helper/_df_helper.py,sha256=WFqEyNhmE4hAXgMcqT8a7iYAhsmM3f_Z_DSQdlZu3P4,30968
5
5
  sibi_dst/df_helper/_parquet_artifact.py,sha256=i6QhQhGz6jyt7MWQk7CocQxUUZwG_50oSk9eyB42_kQ,11248
6
6
  sibi_dst/df_helper/_parquet_reader.py,sha256=L6mr2FeKtTeIn37G9EGpvOx8PwMqXb6qnEECqBaiwxo,3954
7
7
  sibi_dst/df_helper/backends/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -76,6 +76,6 @@ sibi_dst/v2/df_helper/core/_params_config.py,sha256=DYx2drDz3uF-lSPzizPkchhy-kxR
76
76
  sibi_dst/v2/df_helper/core/_query_config.py,sha256=Y8LVSyaKuVkrPluRDkQoOwuXHQxner1pFWG3HPfnDHM,441
77
77
  sibi_dst/v2/utils/__init__.py,sha256=6H4cvhqTiFufnFPETBF0f8beVVMpfJfvUs6Ne0TQZNY,58
78
78
  sibi_dst/v2/utils/log_utils.py,sha256=rfk5VsLAt-FKpv6aPTC1FToIPiyrnHAFFBAkHme24po,4123
79
- sibi_dst-0.3.57.dist-info/METADATA,sha256=U6Ra-N2vtA8yJOdLmj1jNZ9skrrhlvQR3wauhkAbKgk,4292
80
- sibi_dst-0.3.57.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
81
- sibi_dst-0.3.57.dist-info/RECORD,,
79
+ sibi_dst-0.3.58.dist-info/METADATA,sha256=DAQ2TfVwh0aB5uiZ-tnvlPzYe6hdB16M5NXswXZr9ZE,4292
80
+ sibi_dst-0.3.58.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
81
+ sibi_dst-0.3.58.dist-info/RECORD,,