Azure / azure-functions-durable-powershell

PowerShell SDK for writing Durable Functions apps
MIT License
7 stars 3 forks source link

Add RetryOptions alias, add Get-DurableTaskResult + E2E test #45

Closed davidmrdavid closed 1 year ago

davidmrdavid commented 1 year ago

This PR makes two changes: (1) It renames the New-RetryOptionsE to New-RetryOpts, and then it sets New-RetryOptions as the alias of this new CmdLet. I'm proposing this approach over other ones because its simple, and therefore I trust it's reliability. We should be able to remove this alias "hack" once we ship with a PowerShell worker that does not have a built-in SDK.

(2) Adds the Get-DurableTaskResult API. There's 1 change to the API: it now only takes a single task as its input, instead of a list of tasks. This is how I think the API should work in the first place because it makes it equivalent to performing an await on a DF C# task. I'm open to changing my mind on this change.