Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle independent activities of unpinned workflows + more tests #6917

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

ShahabT
Copy link
Collaborator

@ShahabT ShahabT commented Dec 2, 2024

What changed?

Adding a check in RecordActivityTaskStarted to make sure the workflow TQ is present in the activity poller's deployment before starting to transition the workflow. (The check is only applicable when poller's deployment is different from the workflows effective deployment).

Why?

Activities belonging to different deployments are versioned independently and should start on the current deployment of their task queues without interference with versioning of the workflow. Before this change, the workflow would be stuck in a busy loop of activity and workflow tasks, because activity started a transition to it's own deployment but then the next wf task would change the transition to it's own deployment and reschedule the activity.

How did you test it?

Added functional test.

Potential risks

None. This only affects workflows who use versioning 3. The single place in the code that is changed is within if blocks that can activate only when workflows/workers are using versioning 3.

Documentation

Is hotfix candidate?

Yes. Ideally should be added to the release 125 because other wise workflows who use versioning 3 and also run activities belonging to TQs in other deployments will generate explosive load to server and user's workers.

@ShahabT ShahabT requested a review from a team as a code owner December 2, 2024 06:11
@ShahabT ShahabT changed the title Properly handle independent activities of unpinned workflows + more tests Handle independent activities of unpinned workflows + more tests Dec 2, 2024
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