ragaai-catalyst 2.1.5b35__py3-none-any.whl → 2.1.5b37__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.
@@ -305,7 +305,7 @@ class BaseTracer:
305
305
 
306
306
  logger.debug("Base URL used for uploading: {}".format(self.base_url))
307
307
 
308
- # Submit to background process for uploading
308
+ # Submit to background process for uploading using futures
309
309
  self.upload_task_id = submit_upload_task(
310
310
  filepath=filepath,
311
311
  hash_id=hash_id,
@@ -317,28 +317,28 @@ class BaseTracer:
317
317
  base_url=self.base_url
318
318
  )
319
319
 
320
- # # For backward compatibility
321
- # self._is_uploading = True
320
+ # For backward compatibility
321
+ self._is_uploading = True
322
322
 
323
- # # Start checking for completion if a callback is registered
324
- # if self._upload_completed_callback:
325
- # # Start a thread to check status and call callback when complete
326
- # def check_status_and_callback():
327
- # status = self.get_upload_status()
328
- # if status.get("status") in ["completed", "failed"]:
329
- # self._is_uploading = False
330
- # # Execute callback
331
- # try:
332
- # self._upload_completed_callback(self)
333
- # except Exception as e:
334
- # logger.error(f"Error in upload completion callback: {e}")
335
- # return
323
+ # Start checking for completion if a callback is registered
324
+ if self._upload_completed_callback:
325
+ # Start a thread to check status and call callback when complete
326
+ def check_status_and_callback():
327
+ status = self.get_upload_status()
328
+ if status.get("status") in ["completed", "failed"]:
329
+ self._is_uploading = False
330
+ # Execute callback
331
+ try:
332
+ self._upload_completed_callback(self)
333
+ except Exception as e:
334
+ logger.error(f"Error in upload completion callback: {e}")
335
+ return
336
336
 
337
- # # Check again after a delay
338
- # threading.Timer(5.0, check_status_and_callback).start()
337
+ # Check again after a delay
338
+ threading.Timer(5.0, check_status_and_callback).start()
339
339
 
340
- # # Start checking
341
- # threading.Timer(5.0, check_status_and_callback).start()
340
+ # Start checking
341
+ threading.Timer(5.0, check_status_and_callback).start()
342
342
 
343
343
  logger.info(f"Submitted upload task with ID: {self.upload_task_id}")
344
344