Open 0mars opened 2 years ago
as specified in the description:
Events:
None delete_tasks_by_time(int to_timestamp)
None delete_all_tasks()
Is there a merged solution to this problem - it sure would be nice to have.
I created a PR with same feature but different approach. I believe it's better because the only thing you need is to add one config object and that's all. Take a look https://github.com/mher/flower/pull/1310
Is your feature request related to a problem? Please describe. Due to GDPR, we have a requirement to delete tasks as they contain user info, so a specified time can be specified, for example we want to delete tasks older than 48hours
As shown the example below can be used to achieve such task
or
Then we can a celery beat scheduler, that runs each hour, and delete the tasks
Describe the solution you'd like The solution is based on some core function deleting tasks from the sync, while the other delete by time, checks the timestamp of each task, and delete the corrosponding task logs