-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
feat(controller): Step level memoization. Closes #944 #3356
Conversation
…ta. Fixes cache save test.
@@ -504,6 +504,9 @@ type Template struct { | |||
|
|||
// Metrics are a list of metrics emitted from this template | |||
Metrics *Metrics `json:"metrics,omitempty" protobuf:"bytes,35,opt,name=metrics"` | |||
|
|||
// Memoize allows templates to use outputs generated from already executed templates | |||
Memoize *Memoize `json:"memoize,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do we handle the co-existence of this and argo resubmit --memoized
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there's any overlap, since the resubmit flag is a CLI feature and the memoization option here is set in a workflow spec. The resubmit flag also only uses memoization for the same instance of a workflow, while this feature allows different workflows to share the cache.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some first pass comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! First round of comments
What are your thoughts about #944 (comment) ? One this it proposes is adding It also proposes by default calculating the cache_key based on the pod fields: |
…ex. Remove configMapName from cache struct. Fix tests
…or all recent changes.
Available for testing in v2.10.0-rc1. |
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.