-
-
Notifications
You must be signed in to change notification settings - Fork 568
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
PostGraphile watch flag not working as expected #1069
Comments
Hi @alexisrolland; do you get the same issue when you use PostGraphile directly, rather than in Docker? Also, can you ask docker to run |
Hi @benjie I've actually never run PostGraphile outside of Docker and I would have to install it on a server and let it run for a while to see if the issue happens again. I'd like to avoid that. The version I am running is |
v4.4.0 solves a lot of things around database watching for users who reset their databases (e.g. by restarting docker instances); try upgrading to that. |
Cool thanks for the info @benjie I'm actually using the latest Docker image from Docker Hub: https://hub.docker.com/r/graphile/postgraphile/tags I've deleted my Docker image and re-pulled the image but it seems it's still using The image Dockerfile does not specify any version so I would expect it install the latest automatically:
|
Yeah, we need to sort out the DockerHub situation. It's on my list for next week. It always trails behind master. Though I'd expect it to be on 4.3.3 rather than 4.3.2, so seems it may be worse than I realised. Our dockerfile is only a few lines, you might be better off using that yourself directly: https://github.com/graphile/postgraphile/blob/master/Dockerfile |
Ok I'll build a custom image reusing the Dockerfile! |
|
I'm submitting a ...
PostGraphile version:
I am using PostGraphile in Docker. Latests image:
graphile/postgraphile latest f07ca419c2e5 3 months ago 91.9MB
I am running my PostGraphile container using docker-compose. Here is the configuration:
Current behavior:
As you can see, I'm running PostGraphile with the
watch
argument to detect database changes. For some reason after a while, PostGraphile stops to detect the database changes and I have to restart my container to re-detect them and regenerate queries and mutation names... It is difficult to reproduce because the issue happens "randomly" after a while. Not based on a specific user action. Note the database change which was not detected was a table being renamed.Expected behavior:
PostGraphile would continuously detect database changes.
Is this a know issue seen before? What could be the potential reasons for such a behavior? Where could I investigate?
Thanks
Alexis
The text was updated successfully, but these errors were encountered: