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 a handler function raises an exception, it is scheduled to be retried later (by default, in 60 seconds). Other handlers will be invoked — until the state is reached, when all the remaining handlers are scheduled for later.
When a handler with an exception or a retry is scheduled for later execution, and its operator is sleeping until the time comes, and a new watch-event arrives — the sleep must be interrupted, and a new state must be processes immediately, not after few tens of seconds.
Actual Behavior
Kopf uses unconditional asyncio.sleep() with the shortest duration until the next handler to be awakened.
If new events arrive for that object — e.g. it was changed or deleted — the sleep continues unconditionally, and the new events are processes much later.
Expected Behavior
When a handler function raises an exception, it is scheduled to be retried later (by default, in 60 seconds). Other handlers will be invoked — until the state is reached, when all the remaining handlers are scheduled for later.
When a handler with an exception or a retry is scheduled for later execution, and its operator is sleeping until the time comes, and a new watch-event arrives — the sleep must be interrupted, and a new state must be processes immediately, not after few tens of seconds.
Actual Behavior
Kopf uses unconditional
asyncio.sleep()
with the shortest duration until the next handler to be awakened.If new events arrive for that object — e.g. it was changed or deleted — the sleep continues unconditionally, and the new events are processes much later.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: