Long running query (in Azure) is not cancelled
Steps to reproduce:
- try to retrieve datasets in a folder with more than 1M datasets
- cancel the request or wait for timeout in the typescript code
- check the "Total Request Units" in CosmosDB metrics. These do not decrease.
Suggestions:
- Add an explicit timeout in the typescript code for the calls to the sidecar.
- Add a cancellation token in the sidecar's endpoints and propagate them to CosmosDB