restatedev / restate

Restate is the platform for building resilient applications that tolerate all infrastructure faults w/o the need for a PhD.
https://docs.restate.dev
Other
1.65k stars 37 forks source link

Introduce Killed invocation status variant #2331

Open slinkydeveloper opened 5 days ago

slinkydeveloper commented 5 days ago

We need to introduce Cancelling/Killing invocation status variants, specifically for Killing this means we need to slightly modify the existing behavior to wait the "End" message from the invoker after the partition processor sends "Abort", and then send back the "killed" response to sinks.

This helps with observability and we need it for https://github.com/restatedev/restate/issues/895 to make sure we don't process journal entries from the previous retry attempt.

slinkydeveloper commented 4 days ago

For now I scope out the cancelling state, as this is not the same as killing: