Skip to content

fix(shard-distributor): remove usage of context from Start in canary#7541

Merged
arzonus merged 1 commit intocadence-workflow:masterfrom
arzonus:fix-canary-ctx
Dec 17, 2025
Merged

fix(shard-distributor): remove usage of context from Start in canary#7541
arzonus merged 1 commit intocadence-workflow:masterfrom
arzonus:fix-canary-ctx

Conversation

@arzonus
Copy link
Contributor

@arzonus arzonus commented Dec 16, 2025

What changed?

  • context.Context from Start method in processor/processorephemeral.ShardProcessor is not propagated to process method

Why?
context.Context can be directly propagated from an external RPC call, limiting the lifetime of a ShardProcessor to the RPC call's lifetime. Stop function is already responsible for an appropriate stopping of ShardProcessor.

How did you test it?

  • Unit test
  • Run canary on dev env

@eleonoradgr
Copy link
Contributor

I think we should find another way to handle the context more than not propagating it. But for now, since it is canary and since it is affecting sd, I am good with this solution

@arzonus arzonus merged commit 7094df9 into cadence-workflow:master Dec 17, 2025
42 checks passed
@arzonus arzonus deleted the fix-canary-ctx branch December 17, 2025 09:28
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.

2 participants