Skip to content

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

@dsaffie

Description

@dsaffie

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions