Skip to content

Conversation

dandavison
Copy link
Contributor

@dandavison dandavison commented Oct 13, 2025

  • Eliminate shared base class -- it's not appropriate in the future when ActivitySerializationContext will be applied at the top level (and even in the original workflow-activity case, we moved away from nested scopes)

  • Make workflow identifiers optional in activity context

  • Add activity ID to activity context


Note

Restructures workflow/activity serialization contexts (removing shared base), makes workflow IDs optional, adds activity IDs, and updates workers/runtime/tests to construct and assert the new contexts.

  • Converter:
    • Remove BaseWorkflowSerializationContext; WorkflowSerializationContext now directly extends SerializationContext with namespace and optional workflow_id.
    • Redefine ActivitySerializationContext: add activity_id, include namespace, and make workflow_id/workflow_type optional; add field docstrings.
  • Worker/Runtime:
    • Update all context construction in worker/_activity.py and _workflow_instance.py to the new shapes and to populate activity_id.
    • Adjust heartbeat and activity start paths to pass revised context fields.
  • Tests:
    • Add activity_id to activity executions and expected context dicts; relax types (e.g., trace map key to Optional[str]).
    • Rename EventWorkflow to WaitForSignalWorkflow in async activity completion test and update signal calls accordingly.

Written by Cursor Bugbot for commit 89b721a. This will update automatically on new commits. Configure here.

@dandavison dandavison requested a review from a team as a code owner October 13, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant