You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the @kopf.on.resume handler fails, it should be retried, as any other handlers.
Actual Behavior
(Only assumed, not checked):
If the @kopf.on.resume handler fails, it will not be retried.
If the @kopf.on.resume handler is not the first one, it will not be executed.
Cause: a handler failure (exception) causes the handler status to be stored on status.kopf.progress field via PATCH API call, which triggers the next event handling cycle, where the next handlers are attempted or the same handlers are retried. However, it will not be an initial listing already, so the cause detection will not recognise the resuming handler again.
Suggestion: store the status.kopf.initial state in case of failures, and take it into account when detecting causes. Once the full "initial" cycle is done, the whole status.kopf will be purged, and all further events will not include the resuming handler.
Expected Behavior
When the
@kopf.on.resume
handler fails, it should be retried, as any other handlers.Actual Behavior
(Only assumed, not checked):
If the
@kopf.on.resume
handler fails, it will not be retried.If the
@kopf.on.resume
handler is not the first one, it will not be executed.Cause: a handler failure (exception) causes the handler status to be stored on
status.kopf.progress
field viaPATCH
API call, which triggers the next event handling cycle, where the next handlers are attempted or the same handlers are retried. However, it will not be an initial listing already, so the cause detection will not recognise the resuming handler again.Suggestion: store the
status.kopf.initial
state in case of failures, and take it into account when detecting causes. Once the full "initial" cycle is done, the wholestatus.kopf
will be purged, and all further events will not include the resuming handler.Specifications
ToDo:
Solved with
kopf==0.23rc1
. See #230 for the details of the fixed on-resume handlers behaviour.The text was updated successfully, but these errors were encountered: