The term Stop-DurableTaskTimer is not recognized
See original GitHub issueRepro steps
Provide the steps required to reproduce the problem:
- Create a powershell function with the following parameters
- add an durable activity function with following code: Sample from the docs:
param($Context)
$expiryTime = New-TimeSpan -Seconds 30
$activityTask = Invoke-DurableActivity -FunctionName 'GetQuote'-NoWait
$timerTask = Start-DurableTimer -Duration $expiryTime -NoWait
$winner = Wait-DurableTask -Task @($activityTask, $timerTask) -Any
if ($winner -eq $activityTask) {
Stop-DurableTaskTimer -Task $timerTask
return $True
}
else {
return $False
}
Expected behavior
durable timer function is stopped from the orchestrator
Actual behavior
throws: the term Stop-DurableTaskTimer is not recognized
Known workarounds
None
Related information
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
azure - Durable function not safe?
I am working in a durable function based as serverless timers, ... DurableTask\ContextImplementations\DurableOrchestrationContext.cs:line ...
Read more >Handling errors in Durable Functions (Azure Functions)
Learn how to handle errors in the Durable Functions extension for Azure Functions.
Read more >Manage instances in Durable Functions - Azure
Learn how to manage instances in the Durable Functions extension for Azure Functions.
Read more >Azure Durable Functions
Durable Functions in a nutshell: An extension to Azure Functions; Stateful functions in a serverless environment; Define workflows in code ...
Read more >Stateful Serverless: Long-Running Workflows with Durable ...
The Durable Task Framework is an open source library that was written to manage state and control flow for long-running workflows. Durable ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The typo in the docs has been fixed, so I’m closing this. For other topics, please create separate issues.
This is a typo in the doc: the actual command name is
Stop-DurableTimerTask
.@stefanushinardi We need to fix https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-timers?tabs=powershell