-
Notifications
You must be signed in to change notification settings - Fork 773
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 execution scavenger for retention #3457
Conversation
) | ||
|
||
type ( | ||
// mutableStateIDValidator is a validator that does shallow checks that | ||
// * ID >= common.FirstEventID | ||
// * ID <= last event ID | ||
mutableStateIDValidator struct{} | ||
mutableStateIDValidator struct { |
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.
nit: remove ID
from the name?
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.
Remove all ID in the names.
return nil, err | ||
} | ||
retention := ns.Retention() | ||
if ttl > 0 && ttl > retention { |
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.
Do we want to add some buffer here in case deletion time is not created/executed due to some other tasks pending (like archival task)?
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.
Yes. Add a buffer config
* Add execution scavenger for retention
* Add execution scavenger for retention
What changed?
Add execution scavenger for retention
Why?
Scan execution table to find workflow data that pass the TTL.
How did you test it?
Local test
Potential risks
Is hotfix candidate?