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 coordinate::run_and_leave_running #4

Open
allenap opened this issue Apr 16, 2022 · 1 comment
Open

Add coordinate::run_and_leave_running #4

allenap opened this issue Apr 16, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@allenap
Copy link
Owner

allenap commented Apr 16, 2022

There are run_and_stop and run_and_destroy at present, but sometimes you want to leave the cluster running even if you're the last user. This can be relevant with two or more concurrent processes each using the cluster for brief periods to avoid stop-start churn as they interleave.

@allenap allenap added the enhancement New feature or request label Apr 16, 2022
@allenap
Copy link
Owner Author

allenap commented Oct 8, 2023

Other coordination functions that might be useful: just_stop and just_destroy. These can be approximated with run_and_stop and run_and_destroy by passing in no-op functions, but this does result in starting the clusters just to stop or destroy them.

Following that naming convention, perhaps we should have just_create and just_run (i.e. not run_and_leave_running)?

@allenap allenap transferred this issue from allenap/rust-postgresfixture Oct 9, 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
Projects
None yet
Development

No branches or pull requests

1 participant