Skip to content
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

[v0.30] Cancel non-processed tasks with the new method /tasks/cancel #366

Closed
10 tasks
brunoocasali opened this issue Mar 4, 2023 · 0 comments · Fixed by #425
Closed
10 tasks

[v0.30] Cancel non-processed tasks with the new method /tasks/cancel #366

brunoocasali opened this issue Mar 4, 2023 · 0 comments · Fixed by #425
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@brunoocasali
Copy link
Member

brunoocasali commented Mar 4, 2023

This feature request is part of the new set of features introduced on Meilisearch v0.30.
Extracted from meilisearch/integration-guides#221.

Related to:

Allow users to cancel a processing or an enqueued task.

  • Add new endpoint: POST /tasks/cancel
  • Guarantee all the filters available in the GET /tasks but from and limit are available.
  • Add new task type: taskCancelation
  • Add new API key action: tasks.cancel
  • Add new task status canceled
  • Introduce a new error code missing_task_filters
  • Task error field is set to null by default.
  • EnqueuedTask canceledBy field is set to null by default.
  • New fields in details from Task on taskCancelation task type:
    • matchedTasks
    • canceledTasks
    • originalQuery/originalFilter.
  • Add code cancel_tasks_1 into this file
    This code sample should show an example of the corresponding curl command, but with swift code:
curl \
    -X POST 'http://localhost:7700/tasks/cancel?uids=1,2'
@brunoocasali brunoocasali added enhancement New feature or request good first issue Good for newcomers labels Mar 4, 2023
@meili-bors meili-bors bot closed this as completed in 978cd07 Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant