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.

TaskHubClient.CreateOrchestrationInstanceAsync() called within an orchestration seems to hang

See original GitHub issue

Hi,

So, I’ll explain my scenario. I have an orchestration (let’s call it ValidationOrchestration) that does some validations based on an event received on the service bus (my application sends a request event on the service bus for another application and is expecting a response at some point in time). If the validations pass, I create another type of orchestration (let’s call it ProcessingOrchestration) using TaskClient.CreateOrchestrationInstanceAsync(). I am doing this because I want to seperate the validation code from the processing code. I thought it would work but it seems that the ValidationOrchestration instance is waiting on the ProcessingOrchestration it started to complete. I would be expecting this behaviour with CreateSubOrchestrationInstance. I want the ValidationOrchestration to start the ProcessingOrchestration and then complete. Did I do it right?

Thank you

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
poveilleuxcommented, Jan 17, 2018

@cgillum So, to give you a feedback, I used a TaskActivity to wrap my call to CreateOrchestrationInstanceAsync() as you suggested and it worked. Thanks again for your help.

0reactions
poveilleuxcommented, Jan 16, 2018

It is clearer now. Thanks a lot for the detailed explanation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Durable Function Activity seems to run multiple times ...
I have an Durable Function Fan Out and In pattern that doesn't seem to be working reliably. The Orchestration is called from a...
Read more >
Task hubs in Durable Functions - Azure
While a function app is running, the progress of orchestration, activity, and entity functions is continually stored in the task hub.
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