Skip to content

GetAllInstancesAsync thown Exception when use OrchestrationQuery #354

@kikutano

Description

@kikutano

Hello, when I try to use the GetAllInstancesAsync() Method:

var runtimeStatus = new List<OrchestrationRuntimeStatus>
{
        OrchestrationRuntimeStatus.Completed
 };

var instances = client.GetAllInstancesAsync(
       new OrchestrationQuery
       {
           Statuses = runtimeStatus,
           ContinuationToken = continuationToken,
       });

throws an Exception:

Status(StatusCode="Unknown", Detail="Exception was thrown by handler.")

If i try to get all Instances without filters, works fine.

var instances = client.GetAllInstancesAsync();

    bool any = await instances
        .Where(
            x => x.RuntimeStatus == OrchestrationRuntimeStatus.Running ||
            x.RuntimeStatus == OrchestrationRuntimeStatus.Pending)
        .AnyAsync();

Any Idea?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions