Skip to content

Optimize Polling Logic #39

@AaronVasquez

Description

@AaronVasquez

This will become inaccurate if a user comes back to check on an upload's progress. Polling starts from scratch every time the pages is loaded.

There is also a delay of 4s between each poll, which might incorrectly show less progress.

  1. Not sure what the best solution is, but at the very least, we can store something on the client to remember the last index polled so we don't start from the beginning each time.
  2. Instead of regular 4s intervals for polling, we can immediately poll again if we get a successful poll, and only delay if it's not successful. This doesn't solve the problem, but makes polling "faster"

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions