Azure / azure-functions-durable-extension

Durable Task Framework extension for Azure Functions
MIT License
711 stars 263 forks source link

.NET isolated: Strange formatting in terminatePostUri #2705

Open lilyjma opened 6 months ago

lilyjma commented 6 months ago

Description

When running DF in .NET isolated model, the terminatePostUri is formatted strangely. It still works when you use the endpoint, but you get some extra text and the system key as the reason, which is probably bad:

"terminatePostUri": "http://localhost:7071/runtime/webhooks/durabletask/instances/3754a59f898a41abafc280e5ab721bef/terminate?reason={{text}}}\u0026code={systemKey}"

Note the {{text}}}\u0026 after reason. As a result, statusQueryGetUri returns:

"output":"{{test}}}\u0026code={the system key}"

Expected behavior

The terminatePostUri should probably be formatted like .NET in proc:

"terminatePostUri": "http://localhost:7071/runtime/webhooks/durabletask/instances/d3b72dddefce4e758d92f4d411567177/terminate?reason={text}&taskHub={taskHub}&connection={connection}&code={systemKey}"

And you get only this as the reason:

"output":"{testterminate}"

App Details