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

Redirect spooled tasks using versioning directive #4357

Merged
merged 1 commit into from May 19, 2023

Conversation

dnr
Copy link
Member

@dnr dnr commented May 18, 2023

What changed?
When tasks come out of the db, pass them through versioning redirection again because versioning data may have changed (default may be different for first wft, or "active" set id may be different). Also, be able to interrupt the head blocking task and re-resolve if versioning data changes.

Why?
to make things work

How did you test it?
not yet

@dnr dnr requested review from bergundy and Sushisource May 18, 2023 03:06
@dnr dnr requested a review from a team as a code owner May 18, 2023 03:06
@@ -131,7 +131,7 @@ dispatchLoop:
// Don't try to set read level here because it may have been advanced already.
break
}
err := tr.tlMgr.DispatchTask(ctx, task)
err := tr.tlMgr.engine.DispatchSpooledTask(ctx, task, tr.tlMgr.taskQueueID)
Copy link
Member Author

Choose a reason for hiding this comment

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

this is kind of gross, sorry. I need to refactor some stuff here later and hopefully this will change then, but in the meantime it should at least work

@dnr dnr merged commit 6c97e2f into temporalio:worker-versioning May 19, 2023
10 checks passed
@dnr dnr deleted the ver14 branch May 19, 2023 05:55
dnr added a commit that referenced this pull request May 26, 2023
Note: This commit came from a feature branch and is not expected to build.
dnr added a commit to dnr/temporal that referenced this pull request May 26, 2023
Note: This commit came from a feature branch and is not expected to build.
dnr added a commit that referenced this pull request May 26, 2023
Note: This commit came from a feature branch and is not expected to build.
dnr added a commit that referenced this pull request May 26, 2023
Note: This commit came from a feature branch and is not expected to build.
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.

None yet

2 participants