Cancel tasks #391
Replies: 13 comments 19 replies
-
Hmm, okay, well how about the ability to just wipe everything and rebuild? The pending corrupted task queue seems to prevent any action at all from happening on my end. |
Beta Was this translation helpful? Give feedback.
-
Looks like some users want to clear the queue due to indexation time issue: meilisearch/meilisearch#2186 |
Beta Was this translation helpful? Give feedback.
-
+100 upvote please, since we are looking at Meilisearch and not being able to clear/clean/cancel a task queue is a real time sinker. Dealing with many clients with different data requirements and data transformation needs pre-search indexing, it is not uncommon after the initial setup to do some testing and have to load a real sample (75K documents out of 800K documents per index on live) to test well. Walking away and having to come back and notice things are stalled or more commonly there was a logic mistake (property mapping via scout, etc.) makes it painful to destroy, rebuild and restart. |
Beta Was this translation helpful? Give feedback.
-
Would love to have this. Accidentally implemented Meilisearch updates in a weird way which didn't account for our actual traffic, instead of batching them (totally on us), which has left us with ~96k tasks that is taking Meili quite a while to work through. Would be super nice to just be able to cancel all of these and re-update all of them manually in the same operation. |
Beta Was this translation helpful? Give feedback.
-
I would like a feature where, when you push a new task to delete all documents or delete an index meilisearch automatically skip all the others tasks up to this point. (if it's a delete all documents task, obviously, we'll need to do some tricks. Like first delete all documents, and then apply all settings update up to this point or something like that) That would make it even easier to clean your index when you make a mistake without having to understand complex routes 👍 |
Beta Was this translation helpful? Give feedback.
-
@curquiza Is there some work done on that? I could have a look. |
Beta Was this translation helpful? Give feedback.
-
What would be the best way to work around this limitation? |
Beta Was this translation helpful? Give feedback.
-
Hey 👋 Design Iteration 1Small update: We are working on releasing it for v0.30. Here is what we have imagined so far: Introduce a Usage examples
Filters make it possible to match a group of tasks to cancel very extendedly. For example, it is possible to cancel tasks for multiple indexes or types simultaneously!
We also plan to indicate on a canceled task which task uid canceled it. Allowing to know more precisely why a task has been canceled if needed in the history. Design questionsWe would like to have your opinion on some design questions that remain. Accepts uncancellable tasksFinished tasks, those with the status If you send
AccuracyIn addition to the ability to select tasks to cancel via filters. We wonder about the usefulness of being able to send precise uids of tasks to cancel. We could consider adding a Is this something that you think is critical? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Quick update: Following @davelarkan's feedback, we did a second design iteration. Signal to: @Kerollmops, @irevoire Design Iteration 2Specifying tasks to cancel by their uidsWe would like to give the possibility to specify the tasks to be canceled by their uids using a
We have considered only accepting either ( With the proposed solution, users can combine everything for more granular precision or choose one of the two methods they want. Could it be problematic to list a lot of task uid in the
|
Beta Was this translation helpful? Give feedback.
-
During our second design iteration focused on delivering a way for tasks to be flushed (deleted from the disk), we imagined introducing filters on the date fields that could also be used to select tasks for cancellation. ✨ |
Beta Was this translation helpful? Give feedback.
-
Hey everyone 👋
📚 More information here. |
Beta Was this translation helpful? Give feedback.
-
Thank you!
…On Tue, Dec 6, 2022 at 5:25 AM Guillaume Mourier ***@***.***> wrote:
Hey everyone 👋
v0.30 <https://github.com/meilisearch/meilisearch/releases/tag/v0.30.0>
introduced the possibility to cancel any enqueued or processing tasks.
📚 More information here
<https://docs.meilisearch.com/reference/api/tasks.html#cancel-tasks>.
—
Reply to this email directly, view it on GitHub
<#391 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADDKXZXIHTIELHP4WOQRNODWL4IBPANCNFSM5N5XCJKQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello everyone 👋 I'm locking that discussion. Please open a new discussion if you have feedback to share or if it relates to a new feature request. Thank you 🙇♂️ |
Beta Was this translation helpful? Give feedback.
-
Because of GitHub bug, I cannot transfer the discussion, but here is the original one: meilisearch/meilisearch#2156
The feature request is about canceling the tasks.
Technical notes from @MarinPostma:
Beta Was this translation helpful? Give feedback.
All reactions