-
Notifications
You must be signed in to change notification settings - Fork 583
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
Cleanup task executions older than n days - composed tasks 2.11.0 #5477
Comments
I just performed two calls with a CTR and edit the The first task and sub tasks I set to
The new functionality is working like expected. Maybe it would be nice to make the option Then you could cleanup all executions older than n days or with no timestamp that are not completed, too. This is important as the jobs might fail because of some infrastructure stuff in kubernetes or an OOM Exception occurred and they are still in RUNNING as the state couldn't be written. WDYT? |
My only concern is that this would also kill any currently executing tasks. Maybe we could do a sanity check so that the start timestamp is not within the last N minutes. |
I understand your concern, but a task / job can fail at any point even if there is no start / end time. In this case you can’t clear them but only with a full clean of all tasks |
I think this feature will be fine w/ these added constraints:
|
We have tasks that run 2 hours - I think it would be good to store this value when the task is ready for removal. But this would be good yes! |
Yeh we would likely need to expose a property for the min cull time (or something like this). |
Description:
I just tested the new feature of clean up task executions older than n days and found out that composed tasks are not cleaned up correctly. The entries remain in the list but with Duration / Start date / End date set to N/A.
Release versions:
2.11.0
Custom apps:
N/A
Steps to reproduce:
Screenshots:
N/A
Additional context:
N/A
The text was updated successfully, but these errors were encountered: