Deleting a task with particular UUID #1287
Unanswered
mkorycinski
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am using Flower to monitor celery tasks delegated by different microservices. Its API is ideal for serving the users the current state of their tasks. However, the problem occurs when a user wants to delete his task... Flower will keep returning them via API calls, so the only way to achieve this is to keep a list of deleted tasks and filter them out when required. But that's super inefficient since the list of deleted tasks can get very long. Hence the filtering will take a lot of time.
Is there a walkaround to delete a single task with a given UUID from the logs? I know they are stored in a file. But in my case, Flower sits in a separate Docker container. Hence I have no access from other services to its DB file. Moreover, it may not be optimal for many actors to access this file anyway.
Perhaps there is a way to run a second runner with a separate API (written by me) in the same container, created just to delete tasks from the DB file?
As far as I know, there is no way to store Flower data in SQL database like Postgres for persistence? That would be ideal since SQL resides in VM, and one other service could be granted access for deleting the tasks.
Thanks in advance for any suggestions!
Beta Was this translation helpful? Give feedback.
All reactions