Skip to content

Fix TaskAddHook version value#10670

Open
ShahabT wants to merge 1 commit into
temporalio:mainfrom
ShahabT:taskhookversion
Open

Fix TaskAddHook version value#10670
ShahabT wants to merge 1 commit into
temporalio:mainfrom
ShahabT:taskhookversion

Conversation

@ShahabT

@ShahabT ShahabT commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

What changed?

Pass syncMatchQueue's version to TaskAddHooks instead of targetVersion.

Why?

TargetVersion is always routing-config-deriven. For pinned workflows, targetVersion is not necessarily the same as the pinned version.
TaskAddHooks need the version that would be able to process the task, so in the case that pinned version is different from target version, we should use pinned version.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Potential risks

none

@ShahabT ShahabT requested a review from a team as a code owner June 12, 2026 01:33
@ShahabT ShahabT requested review from 02strich and rkannan82 June 12, 2026 01:33

@02strich 02strich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks fine for wci but wondering whether the other used of targetVersion don't have the same issue and shouldn't use it?

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