Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions temporalio/client/_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,9 +698,14 @@ async def describe_activity(
long_poll_token=resp.long_poll_token or None,
namespace=self._client.namespace,
data_converter=self._client.data_converter.with_context(
WorkflowSerializationContext(
ActivitySerializationContext(
namespace=self._client.namespace,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is _client.namespace guaranteed to always be the namespace that the activity started with? I'm not clear about whether the client and the workflow/activity always have the same namespace (but I assume they do).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you can't start/describe a workflow/activity unless you're auth'd against the namespace they are in. Except via Nexus of course 😎

workflow_id=input.activity_id, # Using activity_id as workflow_id for activities not started by a workflow
activity_id=resp.info.activity_id,
activity_task_queue=resp.info.task_queue,
activity_type=resp.info.activity_type.name,
workflow_id=None,
workflow_type=None,
is_local=False,
)
),
)
Expand Down
Loading