Skip to content

Commit 8d66724

Browse files
Use ActivitySerializationContext when describing a Standalone Activity (#1583)
* Use ActivitySerializationContext when describing a Standalone Activity * remove unnecessary check
1 parent b217b36 commit 8d66724

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

temporalio/client/_impl.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,9 +698,14 @@ async def describe_activity(
698698
long_poll_token=resp.long_poll_token or None,
699699
namespace=self._client.namespace,
700700
data_converter=self._client.data_converter.with_context(
701-
WorkflowSerializationContext(
701+
ActivitySerializationContext(
702702
namespace=self._client.namespace,
703-
workflow_id=input.activity_id, # Using activity_id as workflow_id for activities not started by a workflow
703+
activity_id=resp.info.activity_id,
704+
activity_task_queue=resp.info.task_queue,
705+
activity_type=resp.info.activity_type.name,
706+
workflow_id=None,
707+
workflow_type=None,
708+
is_local=False,
704709
)
705710
),
706711
)

0 commit comments

Comments
 (0)