Skip to content

[Wf-Diagnostics] Refactor the workflow diagnostics initialisation code #6595

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

Merged
merged 4 commits into from
Jan 8, 2025

Conversation

sankari165
Copy link
Member

What changed?
Invariants are initialised outside the service and provided as inputs before starting worker service or diagnostics. As a result, the diagnostics workflow is generic and performs the same checks and rootcause across all invariants

Why?
The invariants used in workflow diagnostics were initialised within the service and as a result was hard to setup overrides for alternative implementations of the same invariant

How did you test it?
Unit tests

Potential risks
Invariant interface has been modified so when this PR is merged with alternate implementations within Uber, they need to be modified accordingly

Release notes

Documentation Changes

Copy link
Member

@dkrotx dkrotx left a comment

Choose a reason for hiding this comment

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

Looks really good! So much shorter and more flexible.
Good job!

@sankari165 sankari165 merged commit 4184791 into cadence-workflow:master Jan 8, 2025
17 checks passed
@sankari165 sankari165 deleted the CDNC-11734 branch January 8, 2025 12:07
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