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

add archive + destroy queue #80

Merged
merged 4 commits into from
Feb 5, 2023
Merged

add archive + destroy queue #80

merged 4 commits into from
Feb 5, 2023

Conversation

ChuckHend
Copy link
Collaborator

@ChuckHend ChuckHend commented Feb 4, 2023

  • implements the .archive() method. This essentially moves the message from the queue table to the archive table, instead of outright deleting it.
  • implements the .destroy() method. This deletes the queue table and its index, archive table, and deletes the queue record from pgmq_meta table. It might be safer for this to live in an "admin" API long term, instead of the "Queue" API. However, right now there is no admin API 😸

and adds tests for both of these

@ChuckHend ChuckHend marked this pull request as ready for review February 4, 2023 20:50
@ChuckHend ChuckHend merged commit 8fe4453 into main Feb 5, 2023
@ChuckHend ChuckHend deleted the ahendel/pgmqArchive branch February 5, 2023 01:19
sjmiller609 pushed a commit that referenced this pull request Dec 5, 2023
* add extension module

* update traits

* requeue when requested extensions are not synchronized

* add retry policy on test

* ext plan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants