question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The term Stop-DurableTaskTimer is not recognized

See original GitHub issue

Repro steps

Provide the steps required to reproduce the problem:

  1. Create a powershell function with the following parameters image
  2. 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

https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-timers?tabs=powershell

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
AnatoliBcommented, Aug 31, 2021

The typo in the docs has been fixed, so I’m closing this. For other topics, please create separate issues.

1reaction
AnatoliBcommented, Aug 28, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found