Skip to content

featureflagservice: add healthcheck to postgres dependency#315

Merged
cartersocha merged 1 commit intoopen-telemetry:mainfrom
tsloughter:postgres-healthcheck
Aug 17, 2022
Merged

featureflagservice: add healthcheck to postgres dependency#315
cartersocha merged 1 commit intoopen-telemetry:mainfrom
tsloughter:postgres-healthcheck

Conversation

@tsloughter
Copy link
Copy Markdown
Member

This should fix the issue where the FeatureFlagService migrations fail because postgres isn't actually "ready" it is only "started".

Instead of depending only on the postgres container being started it now depends on it being healthy too.

A problem is that condition: service_healthy is not in the compose v3 docs (only v2). But it does seem that it might be working.

If it doesn't work in v3 I'd argue we should switch to v2. Unless there are features from v3 being used (I don't see any) then use of v2 (specifically version: '2.4') makes sense. My understanding is that v3 isn't really an update to compose v2 but that they can be thought of as separate, where v3 is meant for Swarm use.

@tsloughter tsloughter requested a review from a team August 17, 2022 18:47
@tsloughter tsloughter mentioned this pull request Aug 17, 2022
1 task
Copy link
Copy Markdown
Contributor

@puckpuck puckpuck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for figuring this one out

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.

3 participants