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

v1.5: New /snapshots route #2594

Closed
4 tasks done
guimachiavelli opened this issue Oct 25, 2023 · 5 comments · Fixed by #2616 or #2612
Closed
4 tasks done

v1.5: New /snapshots route #2594

guimachiavelli opened this issue Oct 25, 2023 · 5 comments · Fixed by #2616 or #2612
Labels
new release Changes related upcoming Meilisearch releases
Milestone

Comments

@guimachiavelli
Copy link
Member

guimachiavelli commented Oct 25, 2023

v1.5 introduces a new API route, /snapshots. This route works similarly to /dumps and generates snapshots on demand:

curl \
  -X POST 'http://localhost:7700/snapshots'

Tasks

  • Create new page /reference/api/snapshots.mdx
  • Update /learn/advanced/snapshots.mdx with mentions/examples of the new route
  • Update telemetry table /learn/what_is_meilisearch/telemetry.mdx
  • Update /reference/api/keys.mdx with new action

References

@guimachiavelli guimachiavelli added this to the v1.5 milestone Oct 25, 2023
@curquiza curquiza added the new release Changes related upcoming Meilisearch releases label Oct 31, 2023
@guimachiavelli
Copy link
Member Author

@irevoire: dump creation tasks have precedence over other tasks and get bumped to the top of the queue. Does the same happen with snapshot creation tasks?

@curquiza
Copy link
Member

curquiza commented Nov 2, 2023

Hello @guimachiavelli
I asked your question directly to the dedicated public page about usage in the PRD to avoid losing information about usage (your question is definitely a good one!) 😊

@irevoire
Copy link
Member

irevoire commented Nov 2, 2023

Hey @guimachiavelli, yes, the task priorities are specified here: https://specs.meilisearch.com/specifications/text/0060-tasks-api.html#_2-technical-details

  1. taskCancelation
  2. taskDeletion
  3. snapshotCreation
  4. dumpCreation
  5. All other task types with by their enqueued at order.

@guimachiavelli
Copy link
Member Author

guimachiavelli commented Nov 2, 2023

Apologies, I somehow missed that when I was reading the spec earlier 🙇

@irevoire
Copy link
Member

irevoire commented Nov 2, 2023

No problem, https://specs.meilisearch.com/ works pretty well if you don't know where to search in the spec (which is always my case).

image

@guimachiavelli guimachiavelli linked a pull request Nov 16, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new release Changes related upcoming Meilisearch releases
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants