Files
Shahab TajikandGitHub 52540f90c0 Don't dispatch versioned WF's to unversioned workers (#6127)
## What changed?
<!-- Describe what has changed in this PR -->

## Why?
<!-- Tell your future self why have you made these changes -->
Add checks to insure we never dispatch tasks of versioned workflows to
unversioned workers, except for sticky queue WF tasks.

## How did you test it?
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
- This check is needed to ensure integrity of Worker Versioning. There
may be stale tasks queued in Matching for unversioned workers but now
the WF has become versioned, so those tasks should be rejected similar
to the tasks belonging to an old Build ID.

## Potential risks
<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->
None.

## Documentation
<!-- Have you made sure this change doesn't falsify anything currently
stated in `docs/`? If significant
new behavior is added, have you described that in `docs/`? -->
None.

## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->
No.
2024-06-18 21:33:52 +00:00
..