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

Add cache for workflow specific in memory data #5594

Merged
merged 19 commits into from
Jan 18, 2024

Conversation

jakobht
Copy link
Member

@jakobht jakobht commented Jan 16, 2024

What changed?
Adding a struct for storing in memory workflow specific data. It will first be used for storing workflow specific rate limiters, so we can rate limit too many requests to the same workflowID.

In the future it could store e.g. the current state of the workflow (running, terminated), query answers etc.

Why?
This is part of the general workflow specific rate limits project

How did you test it?
Unit tests

Potential risks
No risk, just adding the struct

Release notes

Documentation Changes

@coveralls
Copy link

coveralls commented Jan 17, 2024

Pull Request Test Coverage Report for Build 018d1c9b-c743-4e7e-93cb-acba6240defc

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 62.588%

Totals Coverage Status
Change from base Build 018d1ad5-064e-4351-8368-fd4ee9876e0d: -0.02%
Covered Lines: 91515
Relevant Lines: 146218

💛 - Coveralls

@sankari165
Copy link
Member

LGTM. do we plan to add observability with metrics/logging in a follow up diff?

@jakobht
Copy link
Member Author

jakobht commented Jan 17, 2024

LGTM. do we plan to add observability with metrics/logging in a follow up diff?

I think that makes sense, I didn't want to add more things in this PR, just wanted to establish the foundation and get that reviewed, to make sure we have the same expectations

@jakobht jakobht merged commit bed6774 into cadence-workflow:master Jan 18, 2024
16 checks passed
@jakobht jakobht deleted the wfCache branch January 18, 2024 13:11
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.

4 participants