Skip to content

Missing ability to query instances using instance ID prefix #601

@cgillum

Description

@cgillum

The Durable extension HTTP API accepts instanceIdPrefix as a filter criteria:

 GET /runtime/webhooks/durabletask/instances/?instanceIdPrefix=940c5f519eb0

But the Python SDK's RpcManagementOptions never emits that query string and get_status_by doesn't expose it as a parameter. (The .NET SDKs do expose it.)

Proposed fix to the Python SDK:

  1. Add instance_id_prefix: Optional[str] = None to RpcManagementOptions.__init__ (models/RpcManagementOptions.py:13).
  2. Emit it in to_url: self._add_arg(query, 'instanceIdPrefix', self._instance_id_prefix).
  3. Thread a new kwarg into DurableOrchestrationClient.get_status_by (models/DurableOrchestrationClient.py:329).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions