-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Unresolved execution detection never deletes old tasks if service restarts too often #515
Comments
Yes, you are correct. It should be changed to |
Unfortunately, I'm not entirely sure how to implement the check. Currently, for each unresolved task, we store its Do you have any suggestions on how to approach this? One possibility might be to modify the dead execution job. We could then retrieve list of unresolved tasks from the task resolver and then query database for Would this approach be acceptable? |
Created PR with basic implementation of proposed idea. Probably could be done smarter/shorter but I wanted to minimize changes in other parts of code (repo etc.) |
Expected Behavior
The unresolved execution detection should delete unresolved tasks once they have been due for the duration configured in
deleteUnresolvedAfter
. (Default: 14 days)Current Behavior
The unresolved execution detection only deletes unresolved tasks after the local scheduler instance has detected the unresolved task for the configured duration. If the service never runs for that duration (due to updates or restarts), unresolved tasks are never deleted.
If this is the intended behaviour, it should be documented.
Workaround: I've reduced
deleteUnresolvedAfter
to 3 days, since the service regularly receives updates and never runs for 14 days straight.Steps to Reproduce the bug
deleteUnresolvedAfter
deleteUnresolvedAfter
after the latest restartContext
The text was updated successfully, but these errors were encountered: