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

Less durable queue #2

Open
jakepearson opened this issue Apr 8, 2014 · 5 comments
Open

Less durable queue #2

jakepearson opened this issue Apr 8, 2014 · 5 comments

Comments

@jakepearson
Copy link

Would it be possible to create a version of the queue that would not be durable for testing purposes? Maybe you could pass an optional parameter to set it to in memory on mode.

@ztellman
Copy link
Contributor

ztellman commented Apr 8, 2014

What are you trying to test? You could simply set the :fsync-intervalto be arbitrarily high, but it will still fsync when swapping out slab files.

@jakepearson
Copy link
Author

The idea was to isolate queues between tests, I would like to be sure that one test's queue state cannot effect another. I can use a uuid for a queue name for each test, but over time I would end up with a large directory. If I can keep the queue in memory then I won't need to make sure to use a uuid or cleanup a named queue between test runs.

@ztellman
Copy link
Contributor

ztellman commented Apr 8, 2014

I can provide a delete-queues function, if that helps, but I suggest actually exercising the code in your tests is a good idea. Skipping over writing to disk would also skip over serializing the tasks, which is an important thing to validate.

@jakepearson
Copy link
Author

That sounds great. Thanks.

@vedang
Copy link

vedang commented May 2, 2023

This issue can be safely closed at the delete! functionality has been added to the code via 37e31d3 9 years ago.

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

3 participants