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

Reduce several check tasks down to one #84

Merged
merged 1 commit into from
Mar 31, 2020
Merged

Conversation

reidmv
Copy link
Contributor

@reidmv reidmv commented Mar 31, 2020

This commit consolidates two tasks which check for a service to be
available into one, and provides a convenience function wrapper for
using that task so that the high-level plans are easier to read.

Right now every use of the check just waits until the service is
running, so the implementation puts the wait logic in the task itself.
In the event a future need to actually return true/false if the service
is running or not, it will be easy to refactor into a single
"service_status" task instead, and put the wait logic into the
convenience function wrapper for today's "wait until" uses.

This commit consolidates two tasks which check for a service to be
available into one, and provides a convenience function wrapper for
using that task so that the high-level plans are easier to read.

Right now every use of the check just waits until the service is
running, so the implementation puts the wait logic in the task itself.
In the event a future need to actually return true/false if the service
is running or not, it will be easy to refactor into a single
"service_status" task instead, and put the wait logic into the
convenience function wrapper for today's "wait until" uses.
@reidmv reidmv merged commit b136625 into master Mar 31, 2020
@reidmv reidmv deleted the one-check-to-rule-them-all branch July 7, 2020 20:41
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.

1 participant