Skip to content

Conversation

@Shivs11
Copy link
Member

@Shivs11 Shivs11 commented Jan 27, 2026

What changed?

  • activate drained/inactive versions to draining when they get a workflow started on it
  • also added a history cache, per history node, so that we don't bombard our version workflows with signals that shall change the drainage status of these workflows.

Why?

  • versioning correctness, in the sense that if someone were to move a workflow on to a version that is drained, the drainage status should be updated to draining (since it now has one open workflow working on it)

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

  • Sure, this change is lowkey risky. Would appreciate a thorough review.


// GenerateDeploymentWorkflowID is a helper that generates a system accepted
// workflowID which are used in our Worker Deployment workflows
func GenerateDeploymentWorkflowID(deploymentName string) string {
Copy link
Member Author

Choose a reason for hiding this comment

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

just minor refactoring

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