-
Notifications
You must be signed in to change notification settings - Fork 51
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
Introduce InvocationStatus::Killed #2335
Introduce InvocationStatus::Killed #2335
Conversation
25a695d
to
d57419d
Compare
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.
Thanks for adding InvocationStatus::Killed
to enable the kill with retry feature @slinkydeveloper. Great that you also fixed the issues with killing/cancelling scheduled invocations! The changes look good to me. I left a few comments/suggestions. +1 for merging after resolving them.
crates/partition-store/src/tests/invocation_status_table_test/mod.rs
Outdated
Show resolved
Hide resolved
/// If true, original status is Invoked, otherwise is Killed | ||
pub is_invoked: bool, |
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.
If this were an enum with the explicit variants, then no comment would be needed to explain what true
and false
means.
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 think this is fine for the time being, this package is crowded with too many types. I tried to add some enum discriminator already, and it didn't end well naming wise.
Eventually I wanna simply rename InvocationStatus
to Invocation
, and have an InvocationStatus
enum which is just the discriminants, and then here use that enum. I can pull this through in a subsequent PR, but it's a big change and i don't wanna do it now to avoid rebase hell.
98a00ee
to
ee51359
Compare
First commit is just the squash of the previous stuff |
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.
Thanks for addressing my comments @slinkydeveloper. LGTM. +1 for merging.
25be1e3
to
a2ea0ca
Compare
Add Killed invocation status to CLI Fix cancellation/killing of scheduled invocations. Reply KILLED when receiving attach/get output and deduplication. Handle killed invocations during leadership change Plumb the new experimental feature invocation_status_killed. Also replace the individual booleans for experimental features with enum set. Add acknowledgment flag to invoker abort command. This makes sure that after a kill, the invoker will send a "terminal" effect to the state machine. Add experimental feature InvocationStatus::Killed Add InvocationStatus::Killed
4245662
to
bf605ea
Compare
Fix #2331. While at it I did some lil' refactorings + fixed killing/cancelling scheduled invocations