Skip to content

Start Orchestrator Function from another Orchestrator Function (Fire and Forget) python #2305

Discussion options

You must be logged in to vote

Hi @kanupriya15025, thanks for reaching out.

Our yield'able APIs unfortunately cannot be invoked as fire-and-forget, and that means that call_sub_orchestrator is a blocking operation. However, you should be able to start an orchestrator in a fire-and-forget way, but it needs a bit more work. The easiest path would be to replace your call_sub_orchestrator call with a call_activity. In that Activity, you can request a DurableOrchestrationClient object that you may use to start an orchestrator through client.start_new. Does that make sense?

As with any Activity, do recall that these may be called more than once, so it's important that you start your orchestrator in an idempotent fashion. You…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@kanupriya15025
Comment options

@kanupriya15025
Comment options

@davidmrdavid
Comment options

@kanupriya15025
Comment options

Answer selected by kanupriya15025
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants