Unable to perform the priority-based execution in azurecosmosdb

51 views Asked by At

I've tried to run the query on the container (azurecosmosdb) using the parameter 'priority_level="High"' it was throwing below exception while trying to run the below code.

Note:- below code written in python

enter image description here

Error details:-

enter image description here

1

There are 1 answers

3
akseli On BEST ANSWER

You're most probably running an old version of azure-sdk-for-python. The priority_level argument preview feature was only merged into the Azure:main branch on October 11th.

You can check out the PR here.

Also, as-per the release notes on GitHub, you're going to need to enable the priority_level preview feature on the account level in Azure.

EDIT You can find details regarding Priority Based Execution for CosmosDB on this blog post from Microsoft.

According to this, you'll need to fill out a nomination for to enable to feature for your account here.