Skip to content
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

Resuming handler will not be retried if it fails #113

Closed
3 tasks
kopf-archiver bot opened this issue Aug 18, 2020 · 0 comments
Closed
3 tasks

Resuming handler will not be retried if it fails #113

kopf-archiver bot opened this issue Aug 18, 2020 · 0 comments
Labels
archive bug Something isn't working

Comments

@kopf-archiver
Copy link

kopf-archiver bot commented Aug 18, 2020

An issue by nolar at 2019-06-14 14:02:28+00:00
Original URL: zalando-incubator/kopf#113
 

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 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.

Specifications

kopf==0.16

ToDo:

  • Verify if it is actually the behaviour.
  • Fix it.
  • Tests.

Commented by nolar at 2019-11-13 17:47:37+00:00
 

Solved with kopf==0.23rc1. See #230 for the details of the fixed on-resume handlers behaviour.

@kopf-archiver kopf-archiver bot closed this as completed Aug 18, 2020
@kopf-archiver kopf-archiver bot changed the title [archival placeholder] Resuming handler will not be retried if it fails Aug 19, 2020
@kopf-archiver kopf-archiver bot added the bug Something isn't working label Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
archive bug Something isn't working
Projects
None yet
Development

No branches or pull requests

0 participants