Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to properly pass input arguments to a sub-orchestration function? #484

Open
dsaffie opened this issue Jan 31, 2024 · 0 comments
Open
Assignees
Labels
P2 Priority 2 question

Comments

@dsaffie
Copy link

dsaffie commented Jan 31, 2024

I have not yet been able to pass input arguments to sub-orchestration functions in my Azure Durable Function. I've looked at and duplicated the example here but this did not work. The example does not show how the sub-orchestration functions accesses the input so possibly that is where I am going wrong. I have a sub-orchestration function like:

@app.orchestration_trigger(context_name="context")
def sub_orchestrator(context: df.DurableOrchestrationContext):
    print(context.get_input())
}

I call it from the orchestrator like:

@app.orchestration_trigger(context_name="context")
def my_orchestrator(context: df.DurableOrchestrationContext):
    input_data = {"input": "123"}
    task = context.call_sub_orchestrator("sub_orchestrator", input_data)
}

This will end up printing None. What is going wrong here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Priority 2 question
Projects
None yet
Development

No branches or pull requests

3 participants