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

Create an option in Disq to keep the task in disk until the end of processing #2

Open
matheusstutzel opened this issue Dec 6, 2021 · 0 comments

Comments

@matheusstutzel
Copy link

Currently, Disq erases from disk (see WorkerRunnable) the next task that will be processed before it is delegated to the Processor. At this point, the task only exists in memory, which can lead to data loss in catastrophic error situations.

This issue proposes the creation of a new option that would allow this behavior to be changed. For that, Disq will have to be modified to use blockingPeek (a function that in turn must be created at SerializerPoll.Slot and InternalQueue) and to erase the task after processing.

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

No branches or pull requests

1 participant