Azure / azure-functions-core-tools

Command line tools for Azure Functions
MIT License
1.32k stars 434 forks source link

Docs: Clarify whether durable purge-history can affect functions not being run locally #2269

Open spiffytech opened 4 years ago

spiffytech commented 4 years ago

I need to do cleanup for my functions during local development, and it's unclear from the docs and my attempt to follow the source code whether running func durable purge-history can ever affect functions running in Azure.

I'd appreciate if these could be documented:

anthonychu commented 4 years ago

I believe it looks in host.json and local.settings.json for the task hub name and storage connection string to perform the action. As long as you're not sharing those with a production app, you should be okay. /cc @ConnorMcMahon

ConnorMcMahon commented 4 years ago

@anthonychu, that is correct. Any actions taken against any Durable Functions app should only affect a given TaskHub + storage account combination. As long as your local app doesn't share that combination (and our general recommendation for Durable Functions is to use a separate TaskHub + storage account for every running funciton app, including local dev), purge history will only clear your local app's history.

I'm not sure where the best place to document this. @anthonychu any ideas?