Skip to content

Fix start_activity() dropping priority parameter#1347

Closed
mfateev wants to merge 2 commits intotemporalio:mainfrom
mfateev:fix/start-activity-priority
Closed

Fix start_activity() dropping priority parameter#1347
mfateev wants to merge 2 commits intotemporalio:mainfrom
mfateev:fix/start-activity-priority

Conversation

@mfateev
Copy link
Member

@mfateev mfateev commented Feb 27, 2026

Summary

  • start_activity() accepted priority as a parameter but silently dropped it — it was not forwarded to workflow_start_activity(). Both execute_activity() and start_activity_class() correctly forward it.
  • Added an E2E interceptor test that captures StartActivityInput via WorkflowOutboundInterceptor and verifies the priority is present when using start_activity().

Test plan

  • test_start_activity_forwards_priority — workflow calls start_activity() with Priority(priority_key=3), interceptor captures StartActivityInput, asserts input.priority == Priority(priority_key=3)
  • Existing test_workflow_priorities continues to pass (uses execute_activity path)

🤖 Generated with Claude Code

Development User and others added 2 commits February 27, 2026 20:52
The priority parameter was accepted in the function signature but not
forwarded to workflow_start_activity(), unlike execute_activity() and
start_activity_class() which correctly pass it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Uses the established interceptor pattern: a workflow calls
start_activity() with priority=Priority(priority_key=3), a
WorkflowOutboundInterceptor captures the StartActivityInput, and the
test asserts the captured input has the correct priority. Fails without
the fix since start_activity() was silently dropping the priority param.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mfateev mfateev requested a review from a team as a code owner February 27, 2026 21:12
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Development User seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@tconley1428
Copy link
Contributor

Odd, I think I fixed this in August: 7e1c725

@tconley1428
Copy link
Contributor

tconley1428 commented Feb 27, 2026

Yeah you're about 300 commits behind main.

@mfateev
Copy link
Member Author

mfateev commented Feb 27, 2026

Closing — this bug was already fixed upstream. The fork (mfateev/sdk-python) was stale and didn't have the fix yet.

@mfateev mfateev closed this Feb 27, 2026
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.

3 participants