public callSubOrchestratorWithRetry()

in src/orchestrations/DurableOrchestrationContext.ts [199:220]


    public callSubOrchestratorWithRetry(
        name: string,
        retryOptions: types.RetryOptions,
        input?: unknown,
        instanceId?: string
    ): Task {
        if (!name) {
            throw new Error(
                "A sub-orchestration function name must be provided when attempting to create a suborchestration"
            );
        }

        const newAction = new CallSubOrchestratorWithRetryAction(
            name,
            retryOptions,
            input,
            instanceId
        );
        const backingTask = new AtomicTask(false, newAction);
        const task = new RetryableTask(backingTask, retryOptions);
        return task;
    }