exo icon indicating copy to clipboard operation
exo copied to clipboard

feat: optimize download progress polling logic

Open li-linfeng opened this issue 1 year ago • 1 comments

  • Add conditional polling based on download status
  • Add debug logs for tracking polling lifecycle
  • Fix continuous polling issue on page load
  • Implement proper cleanup of polling intervals
  • Add checkOngoingDownloads to handle download state persistence

li-linfeng avatar Feb 14 '25 09:02 li-linfeng

I see the issue - we're polling every second so if fetchDownloadProgress takes >1s we'll overwhelm the server. Can we just change startDownloadProgressPolling to be the same as startModelPolling, using async?

AlexCheema avatar Feb 14 '25 21:02 AlexCheema