In this post, I will show how can you clear the orchestration history which is being stored while the function is being executed.
This will help you in the development / debugging process because you dont want to have those activities started while you working on your current problem.
Before you do that, you need to do followings:
To set your own "Hub Name", you would need to edit host.json as below:
This will help you in the development / debugging process because you dont want to have those activities started while you working on your current problem.
Before you do that, you need to do followings:
- Install Function CLI tools (see link below)
- Check what Task Hub Name your function is using.
Run the command from Command Prompt (Administrator mode) by setting source as your project folder where host.json files live, usually root folder of the project.
The command is :
func durable delete-task-hub --task-hub-name myfunctionDemoHub
By default, the function uses "TestHubName" if not one set.
The command is :
func durable delete-task-hub --task-hub-name myfunctionDemoHub
By default, the function uses "TestHubName" if not one set.
To set your own "Hub Name", you would need to edit host.json as below:
{
"version": "2.0",
"extensions": {
"durableTask": {
"hubName": "myfunctionDemoHub"
}
}
}
To see the hub used by the function, you can that on console:
This link has usage has many commands that can be useful.
HTH
No comments:
Post a Comment