abortTimeout

@Nullable
open fun abortTimeout(): @Nullable Duration

Return

configured abort timeout.

See also


open fun abortTimeout(@Nullable abortTimeout: @Nullable Duration): ServiceDefinition.Configurator

This timer guards against stalled service/handler invocations that are supposed to terminate. The abort timeout is started after the inactivityTimeout has expired and the service/handler invocation has been asked to gracefully terminate. Once the timer expires, it will abort the service/handler invocation.

This timer potentially interrupts user code. If the user code needs longer to gracefully terminate, then this value needs to be set accordingly.

This overrides the default abort timeout configured in the restate-server for all invocations to this service.

NOTE: You can set this field only if you register this service against restate-server >= 1.4, otherwise the service discovery will fail.

Return

this