We saw that every cache restore seems to take a minimum of 10s even for small 1MB caches from a local network using Minio or Seaweedfs.
The cause seems to be the listObjects function. It starts a timeout of 10s that is not cleared when the Promise is resolved or rejected. This causes the action to hang for a minimum of 10s even when the restore was faster.
Before fix:
After fix:
Changes
Clear the timeout in listObjects when the Promise is resolved or rejected.
We saw that every cache restore seems to take a minimum of 10s even for small 1MB caches from a local network using Minio or Seaweedfs.
The cause seems to be the
listObjects
function. It starts a timeout of 10s that is not cleared when the Promise is resolved or rejected. This causes the action to hang for a minimum of 10s even when the restore was faster.Before fix:
After fix:
Changes
listObjects
when the Promise is resolved or rejected.Fix Issues
Fixes #43